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:
authorStan Hu <stanhu@gmail.com>2016-08-23 11:06:54 +0300
committerStan Hu <stanhu@gmail.com>2016-08-23 11:09:16 +0300
commite665444724cd5d213d2d2d37267c3ded08912296 (patch)
tree393c2d9ad8abab63ea95af32744ce40168a472b5 /spec/controllers/admin
parent148b8487b817a0c8854c6842109ce1abc5aa4306 (diff)
Fix incorrect "stopped impersonation" log message
Closes #21015
Diffstat (limited to 'spec/controllers/admin')
-rw-r--r--spec/controllers/admin/impersonations_controller_spec.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/controllers/admin/impersonations_controller_spec.rb b/spec/controllers/admin/impersonations_controller_spec.rb
index d5f0b289b5b..8be662974a0 100644
--- a/spec/controllers/admin/impersonations_controller_spec.rb
+++ b/spec/controllers/admin/impersonations_controller_spec.rb
@@ -77,6 +77,8 @@ describe Admin::ImpersonationsController do
context "when the impersonator is not blocked" do
it "redirects to the impersonated user's page" do
+ expect(Gitlab::AppLogger).to receive(:info).with("User #{impersonator.username} has stopped impersonating #{user.username}").and_call_original
+
delete :destroy
expect(response).to redirect_to(admin_user_path(user))