diff options
author | ubudzisz <ubudzisz@gmail.com> | 2016-09-02 14:15:18 +0200 |
---|---|---|
committer | ubudzisz <ubudzisz@gmail.com> | 2016-09-14 09:24:22 +0200 |
commit | a310030005225348822a3cba2474a5756fa8b3ae (patch) | |
tree | a95c1ea841ad580f551c53aef44b2062b45ac023 /spec/features/projects_spec.rb | |
parent | 2c9ab6a78f07f4d2d5ead4ac9f76eb59c729ae32 (diff) | |
download | gitlab-ce-a310030005225348822a3cba2474a5756fa8b3ae.tar.gz |
add test about flash alert
add tests with dependent destroy
add tests with dependent destroy
add tests
add tests to projects spec
update it title and remove let
update it title and remove let
remove changes after rebase
remove changes after rebase
update changelog
Diffstat (limited to 'spec/features/projects_spec.rb')
-rw-r--r-- | spec/features/projects_spec.rb | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/spec/features/projects_spec.rb b/spec/features/projects_spec.rb index e00d85904d5..2242cb6236a 100644 --- a/spec/features/projects_spec.rb +++ b/spec/features/projects_spec.rb @@ -57,7 +57,7 @@ feature 'Project', feature: true do describe 'removal', js: true do let(:user) { create(:user) } - let(:project) { create(:project, namespace: user.namespace) } + let(:project) { create(:project, namespace: user.namespace, name: 'project1') } before do login_with(user) @@ -65,8 +65,12 @@ feature 'Project', feature: true do visit edit_namespace_project_path(project.namespace, project) end - it 'removes project' do + it 'removes a project' do expect { remove_with_confirm('Remove project', project.path) }.to change {Project.count}.by(-1) + expect(page).to have_content "Project 'project1' will be deleted." + expect(Project.all.count).to be_zero + expect(project.issues).to be_empty + expect(project.merge_requests).to be_empty end end |