Commit 0895f519 authored by Rémy Coutable's avatar Rémy Coutable

Merge branch 'issue_344279_5' into 'master'

Fix the offenses introduced by Style/OpenStructUse

See merge request gitlab-org/gitlab!74197
parents 909bfa15 8f392435
...@@ -2614,6 +2614,5 @@ Style/OpenStructUse: ...@@ -2614,6 +2614,5 @@ Style/OpenStructUse:
- 'spec/support/helpers/repo_helpers.rb' - 'spec/support/helpers/repo_helpers.rb'
- 'spec/support/shared_examples/controllers/githubish_import_controller_shared_examples.rb' - 'spec/support/shared_examples/controllers/githubish_import_controller_shared_examples.rb'
- 'spec/support/shared_examples/requests/api/nuget_packages_shared_examples.rb' - 'spec/support/shared_examples/requests/api/nuget_packages_shared_examples.rb'
- 'spec/support/shared_examples/requests/api/pypi_packages_shared_examples.rb'
- 'spec/tooling/rspec_flaky/flaky_example_spec.rb' - 'spec/tooling/rspec_flaky/flaky_example_spec.rb'
- 'tooling/rspec_flaky/flaky_example.rb' - 'tooling/rspec_flaky/flaky_example.rb'
...@@ -167,7 +167,7 @@ end ...@@ -167,7 +167,7 @@ end
RSpec.shared_examples 'rejects PyPI access with unknown project id' do RSpec.shared_examples 'rejects PyPI access with unknown project id' do
context 'with an unknown project' do context 'with an unknown project' do
let(:project) { OpenStruct.new(id: 1234567890) } let(:project) { double('access', id: 1234567890) }
it_behaves_like 'unknown PyPI scope id' it_behaves_like 'unknown PyPI scope id'
end end
...@@ -175,7 +175,7 @@ end ...@@ -175,7 +175,7 @@ end
RSpec.shared_examples 'rejects PyPI access with unknown group id' do RSpec.shared_examples 'rejects PyPI access with unknown group id' do
context 'with an unknown project' do context 'with an unknown project' do
let(:group) { OpenStruct.new(id: 1234567890) } let(:group) { double('access', id: 1234567890) }
it_behaves_like 'unknown PyPI scope id' it_behaves_like 'unknown PyPI scope id'
end 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