From 4b68ce23b9debc8a95cebf791ac0db589ea9a13a Mon Sep 17 00:00:00 2001 From: Siddharth Asthana <siddharthasthana31@gmail.com> Date: Thu, 2 Dec 2021 03:19:34 +0530 Subject: [PATCH] Fix Style/OpenStructUse offenses Changelog: other --- .rubocop_todo/style/open_struct_use.yml | 1 - spec/dependencies/omniauth_saml_spec.rb | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.rubocop_todo/style/open_struct_use.yml b/.rubocop_todo/style/open_struct_use.yml index f149f8e9f35b1..b45c5742885ff 100644 --- a/.rubocop_todo/style/open_struct_use.yml +++ b/.rubocop_todo/style/open_struct_use.yml @@ -19,7 +19,6 @@ Style/OpenStructUse: - spec/controllers/import/fogbugz_controller_spec.rb - spec/controllers/import/gitlab_controller_spec.rb - spec/controllers/projects/clusters_controller_spec.rb - - spec/dependencies/omniauth_saml_spec.rb - spec/factories/go_module_versions.rb - spec/factories/wiki_pages.rb - spec/features/projects/clusters/gcp_spec.rb diff --git a/spec/dependencies/omniauth_saml_spec.rb b/spec/dependencies/omniauth_saml_spec.rb index fa179eb151669..8956fa44b7ab5 100644 --- a/spec/dependencies/omniauth_saml_spec.rb +++ b/spec/dependencies/omniauth_saml_spec.rb @@ -7,7 +7,7 @@ let(:mock_saml_response) { File.read('spec/fixtures/authentication/saml_response.xml') } let(:saml_strategy) { OmniAuth::Strategies::SAML.new({}) } let(:session_mock) { {} } - let(:settings) { OpenStruct.new({ soft: false, idp_cert_fingerprint: 'something' }) } + let(:settings) { double('settings', { soft: false, idp_cert_fingerprint: 'something' }) } let(:auth_hash) { Gitlab::Auth::Saml::AuthHash.new(saml_strategy) } subject { auth_hash.authn_context } -- GitLab