Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/services/users/reject_service_spec.rb')
-rw-r--r--spec/services/users/reject_service_spec.rb11
1 files changed, 8 insertions, 3 deletions
diff --git a/spec/services/users/reject_service_spec.rb b/spec/services/users/reject_service_spec.rb
index f72666d8a63..8c8351b81a8 100644
--- a/spec/services/users/reject_service_spec.rb
+++ b/spec/services/users/reject_service_spec.rb
@@ -40,8 +40,7 @@ RSpec.describe Users::RejectService, feature_category: :user_management do
expect(subject[:status]).to eq(:success)
expect(
- Users::GhostUserMigration.where(user: user,
- initiator_user: current_user)
+ Users::GhostUserMigration.where(user: user, initiator_user: current_user)
).to be_exists
end
@@ -58,7 +57,13 @@ RSpec.describe Users::RejectService, feature_category: :user_management do
subject
- expect(Gitlab::AppLogger).to have_received(:info).with(message: "User instance access request rejected", user: user.username.to_s, email: user.email.to_s, rejected_by: current_user.username.to_s, ip_address: current_user.current_sign_in_ip.to_s)
+ expect(Gitlab::AppLogger).to have_received(:info).with(
+ message: "User instance access request rejected",
+ user: user.username.to_s,
+ email: user.email.to_s,
+ rejected_by: current_user.username.to_s,
+ ip_address: current_user.current_sign_in_ip.to_s
+ )
end
end
end