diff options
author | Rémy Coutable <remy@rymai.me> | 2018-05-18 16:27:52 +0200 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2018-05-18 16:30:54 +0200 |
commit | d34d6a58fd89f72b63842832f8a6660a01681ebb (patch) | |
tree | b3fcd37206055f78379a0bd435872ddddecd9017 /spec | |
parent | 6226d19c711e34ed9fa6f8a61468cac7f10ba7cf (diff) | |
download | gitlab-ce-d34d6a58fd89f72b63842832f8a6660a01681ebb.tar.gz |
Minimize CE/EE difference in Gitlab::Auth::LDAP::User5913-extract-ee-specific-lines-for-lib-gitlab-auth
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'spec')
-rw-r--r-- | spec/lib/gitlab/auth/ldap/user_spec.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/spec/lib/gitlab/auth/ldap/user_spec.rb b/spec/lib/gitlab/auth/ldap/user_spec.rb index 653c19942ea..44bb9d20e47 100644 --- a/spec/lib/gitlab/auth/ldap/user_spec.rb +++ b/spec/lib/gitlab/auth/ldap/user_spec.rb @@ -1,6 +1,8 @@ require 'spec_helper' describe Gitlab::Auth::LDAP::User do + include LdapHelpers + let(:ldap_user) { described_class.new(auth_hash) } let(:gl_user) { ldap_user.gl_user } let(:info) do @@ -177,8 +179,7 @@ describe Gitlab::Auth::LDAP::User do describe 'blocking' do def configure_block(value) - allow_any_instance_of(Gitlab::Auth::LDAP::Config) - .to receive(:block_auto_created_users).and_return(value) + stub_ldap_config(block_auto_created_users: value) end context 'signup' do |