Minimize CE/EE difference in Gitlab::Auth::LDAP::User
Signed-off-by: Rémy Coutable <remy@rymai.me>
This commit is contained in:
parent
6226d19c71
commit
d34d6a58fd
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue