Commit 572063f3 authored by mehulsharma's avatar mehulsharma

Fixed OpenStruct use

Fixes openstruct use in base_spec since Ruby 3 discourages internal

Changelog: changed
parent 275af535
...@@ -2622,7 +2622,6 @@ Style/OpenStructUse: ...@@ -2622,7 +2622,6 @@ Style/OpenStructUse:
- 'spec/presenters/packages/nuget/search_results_presenter_spec.rb' - 'spec/presenters/packages/nuget/search_results_presenter_spec.rb'
- 'spec/requests/api/graphql/mutations/design_management/delete_spec.rb' - 'spec/requests/api/graphql/mutations/design_management/delete_spec.rb'
- 'spec/requests/api/import_github_spec.rb' - 'spec/requests/api/import_github_spec.rb'
- 'spec/requests/api/internal/base_spec.rb'
- 'spec/services/packages/nuget/metadata_extraction_service_spec.rb' - 'spec/services/packages/nuget/metadata_extraction_service_spec.rb'
- 'spec/services/projects/import_service_spec.rb' - 'spec/services/projects/import_service_spec.rb'
- 'spec/services/system_note_service_spec.rb' - 'spec/services/system_note_service_spec.rb'
......
...@@ -948,7 +948,7 @@ RSpec.describe API::Internal::Base do ...@@ -948,7 +948,7 @@ RSpec.describe API::Internal::Base do
context 'user does not exist' do context 'user does not exist' do
it do it do
pull(OpenStruct.new(id: 0), project) pull(double('key', id: 0), project)
expect(response).to have_gitlab_http_status(:not_found) expect(response).to have_gitlab_http_status(:not_found)
expect(json_response["status"]).to be_falsey expect(json_response["status"]).to be_falsey
......
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