diff options
Diffstat (limited to 'spec/services/users/unban_service_spec.rb')
-rw-r--r-- | spec/services/users/unban_service_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/services/users/unban_service_spec.rb b/spec/services/users/unban_service_spec.rb index d536baafdcc..3dcb8450e7b 100644 --- a/spec/services/users/unban_service_spec.rb +++ b/spec/services/users/unban_service_spec.rb @@ -38,7 +38,7 @@ RSpec.describe Users::UnbanService do end it 'logs unban in application logs' do - expect(Gitlab::AppLogger).to receive(:info).with(message: "User unban", user: "#{user.username}", email: "#{user.email}", unban_by: "#{current_user.username}", ip_address: "#{current_user.current_sign_in_ip}") + expect(Gitlab::AppLogger).to receive(:info).with(message: "User unban", user: user.username.to_s, email: user.email.to_s, unban_by: current_user.username.to_s, ip_address: current_user.current_sign_in_ip.to_s) unban_user end |