Commit 17b1cb4e authored by Albert Salim's avatar Albert Salim

Merge branch '344279-base-openstruct-use' into 'master'

Fixes OpenStruct use in base_spec

See merge request gitlab-org/gitlab!73932
parents 2157137d 572063f3
......@@ -2621,7 +2621,6 @@ Style/OpenStructUse:
- 'spec/presenters/packages/nuget/search_results_presenter_spec.rb'
- 'spec/requests/api/graphql/mutations/design_management/delete_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/projects/import_service_spec.rb'
- 'spec/services/system_note_service_spec.rb'
......
......@@ -948,7 +948,7 @@ RSpec.describe API::Internal::Base do
context 'user does not exist' 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(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