Commit b7b81a84 authored by mehulsharma's avatar mehulsharma

Fix OpenStruct usage

Fixes OpenStruct use in usage_data_spec since Ruby 3 discourages it

Changelog: changed
parent cccf2b50
...@@ -2615,7 +2615,6 @@ Style/OpenStructUse: ...@@ -2615,7 +2615,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