Commit 67c6a42a authored by David Fernandez's avatar David Fernandez

Merge branch 'issue_344279_last_6' into 'master'

Fix offenses introduced by Style/OpenStructUse `nuget_packages_shared_examples.rb`

See merge request gitlab-org/gitlab!74203
parents d496369a 6d4208b2
......@@ -2609,7 +2609,6 @@ Style/OpenStructUse:
- 'spec/support/helpers/login_helpers.rb'
- 'spec/support/helpers/repo_helpers.rb'
- 'spec/support/shared_examples/controllers/githubish_import_controller_shared_examples.rb'
- 'spec/support/shared_examples/requests/api/nuget_packages_shared_examples.rb'
- 'spec/tooling/rspec_flaky/flaky_example_spec.rb'
- 'tooling/rspec_flaky/flaky_example.rb'
......
......@@ -391,7 +391,7 @@ RSpec.shared_examples 'rejects nuget access with invalid target id' do
context 'with a target id with invalid integers' do
using RSpec::Parameterized::TableSyntax
let(:target) { OpenStruct.new(id: id) }
let(:target) { double(id: id) }
where(:id, :status) do
'/../' | :bad_request
......@@ -411,7 +411,7 @@ end
RSpec.shared_examples 'rejects nuget access with unknown target id' do
context 'with an unknown target' do
let(:target) { OpenStruct.new(id: 1234567890) }
let(:target) { double(id: 1234567890) }
context 'as anonymous' do
it_behaves_like 'rejects nuget packages access', :anonymous, :unauthorized
......
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