Commit 50aa6a0c authored by Rémy Coutable's avatar Rémy Coutable

Merge branch '344279-import-github-fix' into 'master'

Fix OpenStruct use in import_github_spec

See merge request gitlab-org/gitlab!74618
parents 3654a460 60451303
......@@ -2603,7 +2603,6 @@ Style/OpenStructUse:
- 'spec/models/design_management/design_at_version_spec.rb'
- 'spec/models/user_spec.rb'
- 'spec/presenters/packages/nuget/search_results_presenter_spec.rb'
- 'spec/requests/api/import_github_spec.rb'
- 'spec/services/packages/nuget/metadata_extraction_service_spec.rb'
- 'spec/services/projects/import_service_spec.rb'
- 'spec/services/system_note_service_spec.rb'
......
......@@ -11,12 +11,12 @@ RSpec.describe API::ImportGithub do
let(:user) { create(:user) }
let(:project) { create(:project) }
let(:provider_username) { user.username }
let(:provider_user) { OpenStruct.new(login: provider_username) }
let(:provider_user) { double('provider', login: provider_username) }
let(:provider_repo) do
OpenStruct.new(
double('provider',
name: 'vim',
full_name: "#{provider_username}/vim",
owner: OpenStruct.new(login: provider_username)
owner: double('provider', login: provider_username)
)
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment