diff options
author | Douwe Maan <douwe@gitlab.com> | 2015-12-03 13:28:08 +0100 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2015-12-03 13:28:08 +0100 |
commit | fc5afc60ace366fd010f1df1484d2f048c162a7b (patch) | |
tree | aa775b6413682508808c8743aea3cbe7dae56a92 /spec/features/admin/admin_users_spec.rb | |
parent | 37ab1120c8a252aa29702ef141ff4ea1163e0e75 (diff) | |
parent | 6689224a90f3d2500be5d927ea1ed9656fc7b1b6 (diff) | |
download | gitlab-ce-fc5afc60ace366fd010f1df1484d2f048c162a7b.tar.gz |
Merge branch 'master' into ui/new-projectui/new-project
Diffstat (limited to 'spec/features/admin/admin_users_spec.rb')
-rw-r--r-- | spec/features/admin/admin_users_spec.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/features/admin/admin_users_spec.rb b/spec/features/admin/admin_users_spec.rb index 86f01faffb4..4570e409128 100644 --- a/spec/features/admin/admin_users_spec.rb +++ b/spec/features/admin/admin_users_spec.rb @@ -128,6 +128,16 @@ describe "Admin::Users", feature: true do expect(page).not_to have_content('Impersonate') end + + it 'should not show impersonate button for blocked user' do + another_user.block + + visit admin_user_path(another_user) + + expect(page).not_to have_content('Impersonate') + + another_user.activate + end end context 'when impersonating' do |