diff options
| author | Douwe Maan <douwe@gitlab.com> | 2015-12-03 13:32:42 +0100 |
|---|---|---|
| committer | Douwe Maan <douwe@gitlab.com> | 2015-12-03 13:32:42 +0100 |
| commit | 928d131e3974018581d561a7eb11d6524d2e79a2 (patch) | |
| tree | 8f2c76dfe2576ed86e7850805ad6fd43f0b9c653 /spec/features | |
| parent | 044e0e33dce9371430a3c91e63f9f687b536d35b (diff) | |
| parent | 6689224a90f3d2500be5d927ea1ed9656fc7b1b6 (diff) | |
| download | gitlab-ce-928d131e3974018581d561a7eb11d6524d2e79a2.tar.gz | |
Merge branch 'master' into link-refs
Diffstat (limited to 'spec/features')
| -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 |
