Fix Rubocop offenses in LDAP related code and spec

This commit is contained in:
Grzegorz Bizon 2017-01-10 14:31:21 +01:00
parent 8c9ccc3d6e
commit cff423449f
2 changed files with 4 additions and 4 deletions

View file

@ -69,7 +69,7 @@ module Gitlab
user.ldap_block
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})"
)
end
@ -78,7 +78,7 @@ module Gitlab
user.activate
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})"
)
end

View file

@ -127,7 +127,7 @@ describe Gitlab::LDAP::Access, lib: true do
it 'logs the reason' do
expect(Gitlab::AppLogger).to have_received(:info).with(
"LDAP account \"123456\" reason, " +
"LDAP account \"123456\" reason, " \
"blocking Gitlab user \"#{user.name}\" (#{user.email})"
)
end
@ -148,7 +148,7 @@ describe Gitlab::LDAP::Access, lib: true do
it 'logs the reason' do
Gitlab::AppLogger.info(
"LDAP account \"123456\" reason, " +
"LDAP account \"123456\" reason, " \
"unblocking Gitlab user \"#{user.name}\" (#{user.email})"
)
end