Skip to content
Snippets Groups Projects
Commit cff42344 authored by Grzegorz Bizon's avatar Grzegorz Bizon
Browse files

Fix Rubocop offenses in LDAP related code and spec

parent 8c9ccc3d
No related branches found
No related tags found
No related merge requests found
Loading
@@ -69,7 +69,7 @@ module Gitlab
Loading
@@ -69,7 +69,7 @@ module Gitlab
user.ldap_block user.ldap_block
   
Gitlab::AppLogger.info( Gitlab::AppLogger.info(
"LDAP account \"#{user.ldap_identity.extern_uid}\" #{reason}, " + "LDAP account \"#{user.ldap_identity.extern_uid}\" #{reason}, " \
"blocking Gitlab user \"#{user.name}\" (#{user.email})" "blocking Gitlab user \"#{user.name}\" (#{user.email})"
) )
end end
Loading
@@ -78,7 +78,7 @@ module Gitlab
Loading
@@ -78,7 +78,7 @@ module Gitlab
user.activate user.activate
   
Gitlab::AppLogger.info( Gitlab::AppLogger.info(
"LDAP account \"#{user.ldap_identity.extern_uid}\" #{reason}, " + "LDAP account \"#{user.ldap_identity.extern_uid}\" #{reason}, " \
"unblocking Gitlab user \"#{user.name}\" (#{user.email})" "unblocking Gitlab user \"#{user.name}\" (#{user.email})"
) )
end end
Loading
Loading
Loading
@@ -127,7 +127,7 @@ describe Gitlab::LDAP::Access, lib: true do
Loading
@@ -127,7 +127,7 @@ describe Gitlab::LDAP::Access, lib: true do
   
it 'logs the reason' do it 'logs the reason' do
expect(Gitlab::AppLogger).to have_received(:info).with( expect(Gitlab::AppLogger).to have_received(:info).with(
"LDAP account \"123456\" reason, " + "LDAP account \"123456\" reason, " \
"blocking Gitlab user \"#{user.name}\" (#{user.email})" "blocking Gitlab user \"#{user.name}\" (#{user.email})"
) )
end end
Loading
@@ -148,7 +148,7 @@ describe Gitlab::LDAP::Access, lib: true do
Loading
@@ -148,7 +148,7 @@ describe Gitlab::LDAP::Access, lib: true do
   
it 'logs the reason' do it 'logs the reason' do
Gitlab::AppLogger.info( Gitlab::AppLogger.info(
"LDAP account \"123456\" reason, " + "LDAP account \"123456\" reason, " \
"unblocking Gitlab user \"#{user.name}\" (#{user.email})" "unblocking Gitlab user \"#{user.name}\" (#{user.email})"
) )
end end
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment