Commit 0fe05e70 authored by Alper Akgun's avatar Alper Akgun

Merge branch '344279-usage-data-openstruct-fix' into 'master'

Fix OpenStruct use in usage_data_spec

See merge request gitlab-org/gitlab!74405
parents 7be3f599 b7b81a84
...@@ -2611,7 +2611,6 @@ Style/OpenStructUse: ...@@ -2611,7 +2611,6 @@ Style/OpenStructUse:
- 'spec/lib/gitlab/quick_actions/command_definition_spec.rb' - 'spec/lib/gitlab/quick_actions/command_definition_spec.rb'
- 'spec/lib/gitlab/quick_actions/dsl_spec.rb' - 'spec/lib/gitlab/quick_actions/dsl_spec.rb'
- 'spec/lib/gitlab/relative_positioning/range_spec.rb' - 'spec/lib/gitlab/relative_positioning/range_spec.rb'
- 'spec/lib/gitlab/usage_data_spec.rb'
- 'spec/models/design_management/design_action_spec.rb' - 'spec/models/design_management/design_action_spec.rb'
- 'spec/models/design_management/design_at_version_spec.rb' - 'spec/models/design_management/design_at_version_spec.rb'
- 'spec/models/user_spec.rb' - 'spec/models/user_spec.rb'
......
...@@ -375,9 +375,9 @@ RSpec.describe Gitlab::UsageData, :aggregate_failures do ...@@ -375,9 +375,9 @@ RSpec.describe Gitlab::UsageData, :aggregate_failures do
def omniauth_providers def omniauth_providers
[ [
OpenStruct.new(name: 'google_oauth2'), double('provider', name: 'google_oauth2'),
OpenStruct.new(name: 'ldapmain'), double('provider', name: 'ldapmain'),
OpenStruct.new(name: 'group_saml') double('provider', name: 'group_saml')
] ]
end end
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