diff options
Diffstat (limited to 'spec/lib/gitlab/auth/ldap/adapter_spec.rb')
-rw-r--r-- | spec/lib/gitlab/auth/ldap/adapter_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/lib/gitlab/auth/ldap/adapter_spec.rb b/spec/lib/gitlab/auth/ldap/adapter_spec.rb index 78970378b7f..8546d63cf77 100644 --- a/spec/lib/gitlab/auth/ldap/adapter_spec.rb +++ b/spec/lib/gitlab/auth/ldap/adapter_spec.rb @@ -128,7 +128,7 @@ RSpec.describe Gitlab::Auth::Ldap::Adapter do before do allow(adapter).to receive(:renew_connection_adapter).and_return(ldap) allow(ldap).to receive(:search) { raise Net::LDAP::Error, "some error" } - allow(Rails.logger).to receive(:warn) + allow(Gitlab::AppLogger).to receive(:warn) end context 'retries the operation' do @@ -152,7 +152,7 @@ RSpec.describe Gitlab::Auth::Ldap::Adapter do it 'logs the error' do expect { subject }.to raise_error(Gitlab::Auth::Ldap::LdapConnectionError) - expect(Rails.logger).to have_received(:warn).with( + expect(Gitlab::AppLogger).to have_received(:warn).with( "LDAP search raised exception Net::LDAP::Error: some error") end end |