Commit 1d7bc3ba authored by Bob Van Landuyt's avatar Bob Van Landuyt

Merge branch 'ldap-openstruct-use' into 'master'

Fix OpenStruct use in ldap_spec

See merge request gitlab-org/gitlab!74190
parents 6bfed455 23de3cdb
...@@ -2560,7 +2560,6 @@ Style/OpenStructUse: ...@@ -2560,7 +2560,6 @@ Style/OpenStructUse:
- 'ee/spec/helpers/ee/blob_helper_spec.rb' - 'ee/spec/helpers/ee/blob_helper_spec.rb'
- 'ee/spec/lib/gitlab/auth/group_saml/failure_handler_spec.rb' - 'ee/spec/lib/gitlab/auth/group_saml/failure_handler_spec.rb'
- 'ee/spec/lib/gitlab/legacy_github_import/project_creator_spec.rb' - 'ee/spec/lib/gitlab/legacy_github_import/project_creator_spec.rb'
- 'ee/spec/requests/api/ldap_spec.rb'
- 'lib/api/wikis.rb' - 'lib/api/wikis.rb'
- 'lib/gitlab/git/diff_collection.rb' - 'lib/gitlab/git/diff_collection.rb'
- 'lib/gitlab/import_export/after_export_strategies/base_after_export_strategy.rb' - 'lib/gitlab/import_export/after_export_strategies/base_after_export_strategy.rb'
......
...@@ -13,8 +13,8 @@ RSpec.describe API::Ldap do ...@@ -13,8 +13,8 @@ RSpec.describe API::Ldap do
before do before do
groups = [ groups = [
OpenStruct.new(cn: 'developers'), double('group', cn: 'developers'),
OpenStruct.new(cn: 'students') double('group', cn: 'students')
] ]
allow(Gitlab::Auth::Ldap::Config).to receive(:enabled?).and_return(true) allow(Gitlab::Auth::Ldap::Config).to receive(:enabled?).and_return(true)
......
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