Minimize CE/EE difference in Gitlab::Auth::LDAP::User

Signed-off-by: Rémy Coutable <remy@rymai.me>
This commit is contained in:
Rémy Coutable 2018-05-18 16:27:52 +02:00
parent 6226d19c71
commit d34d6a58fd
No known key found for this signature in database
GPG key ID: 98DFFD1C0C62B70B

View file

@ -1,6 +1,8 @@
require 'spec_helper' require 'spec_helper'
describe Gitlab::Auth::LDAP::User do describe Gitlab::Auth::LDAP::User do
include LdapHelpers
let(:ldap_user) { described_class.new(auth_hash) } let(:ldap_user) { described_class.new(auth_hash) }
let(:gl_user) { ldap_user.gl_user } let(:gl_user) { ldap_user.gl_user }
let(:info) do let(:info) do
@ -177,8 +179,7 @@ describe Gitlab::Auth::LDAP::User do
describe 'blocking' do describe 'blocking' do
def configure_block(value) def configure_block(value)
allow_any_instance_of(Gitlab::Auth::LDAP::Config) stub_ldap_config(block_auto_created_users: value)
.to receive(:block_auto_created_users).and_return(value)
end end
context 'signup' do context 'signup' do