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' 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 ...@@ -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
......
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