summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorNick Thomas <nick@gitlab.com>2017-06-02 14:42:06 +0100
committerNick Thomas <nick@gitlab.com>2017-06-05 17:48:57 +0100
commit11fb83fcc0efa91f60e516d7fb23d035b8f78634 (patch)
tree569c53d76bcd7a88ff854bdacc7ba8f2dc588c9b /spec
parent8ce26b3ab64caefce2f7bfba1448428657c0fecc (diff)
downloadgitlab-ce-11fb83fcc0efa91f60e516d7fb23d035b8f78634.tar.gz
Allow users to be hard-deleted from the admin user show page
Diffstat (limited to 'spec')
-rw-r--r--spec/features/admin/admin_users_spec.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/spec/features/admin/admin_users_spec.rb b/spec/features/admin/admin_users_spec.rb
index 2d936dbbc80..301a47169a4 100644
--- a/spec/features/admin/admin_users_spec.rb
+++ b/spec/features/admin/admin_users_spec.rb
@@ -117,6 +117,9 @@ describe "Admin::Users", feature: true do
expect(page).to have_content(user.email)
expect(page).to have_content(user.name)
+ expect(page).to have_link('Block user', href: block_admin_user_path(user))
+ expect(page).to have_link('Remove user', href: admin_user_path(user))
+ expect(page).to have_link('Remove user and contributions', href: admin_user_path(user, hard_delete: true))
end
describe 'Impersonation' do