summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2017-08-17 14:17:05 +0000
committerRémy Coutable <remy@rymai.me>2017-08-17 14:17:05 +0000
commit87ba1808db4279bc65fb7097d7bc19d7c23215d1 (patch)
treefaddd8d52f75c1f7dfd64e99918f8e18f4a0ff5b /spec
parent91d3e6d9011edd19f980a8a0864ff0f673513011 (diff)
parent153b48f9f93a5072caafa180303e4ddb600ff5e4 (diff)
downloadgitlab-ce-87ba1808db4279bc65fb7097d7bc19d7c23215d1.tar.gz
Merge branch '36087-users-cannot-delete-their-account' into 'master'
Allow all users to delete their account Closes #36087 See merge request !13636
Diffstat (limited to 'spec')
-rw-r--r--spec/features/profile_spec.rb15
1 files changed, 1 insertions, 14 deletions
diff --git a/spec/features/profile_spec.rb b/spec/features/profile_spec.rb
index 672022304da..f183dd8cb75 100644
--- a/spec/features/profile_spec.rb
+++ b/spec/features/profile_spec.rb
@@ -7,9 +7,8 @@ describe 'Profile account page' do
sign_in(user)
end
- describe 'when signup is enabled' do
+ describe 'when I delete my account' do
before do
- stub_application_setting(signup_enabled: true)
visit profile_account_path
end
@@ -21,18 +20,6 @@ describe 'Profile account page' do
end
end
- describe 'when signup is disabled' do
- before do
- stub_application_setting(signup_enabled: false)
- visit profile_account_path
- end
-
- it 'does not have option to remove account' do
- expect(page).not_to have_content('Remove account')
- expect(current_path).to eq(profile_account_path)
- end
- end
-
describe 'when I reset private token' do
before do
visit profile_account_path