Commit d34d6a58 authored by Rémy Coutable's avatar Rémy Coutable

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

Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
parent 6226d19c
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
......
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