Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-10-28 17:14:40 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-10-28 17:14:40 +0300
commit576a80e97c0314cf5b7209ff3cc2a6e26d1c2977 (patch)
tree779cf65a0f580fa8b0d78d1b173479730a8b8fc2 /spec/features/projects_spec.rb
parent05f19392b76d9fbe40d97547ee2a3c87883c9639 (diff)
parent41518a467dcef61deca24ad2f6205c6fd5706e1b (diff)
Merge branch 'api-project-delete' of https://gitlab.com/mr-vinn/gitlab-ce into mr-vinn/gitlab-ce-api-project-delete
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> Conflicts: spec/features/projects_spec.rb
Diffstat (limited to 'spec/features/projects_spec.rb')
-rw-r--r--spec/features/projects_spec.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/spec/features/projects_spec.rb b/spec/features/projects_spec.rb
index 98ba5a47ee5..87bfe102d39 100644
--- a/spec/features/projects_spec.rb
+++ b/spec/features/projects_spec.rb
@@ -17,5 +17,14 @@ describe "Projects", feature: true do
click_button 'Confirm'
}.to change {Project.count}.by(-1)
end
+
+ it 'should delete the project from the database and disk' do
+ expect(GitlabShellWorker).to(
+ receive(:perform_async).with(:remove_repository,
+ /#{@project.path_with_namespace}/)
+ ).twice
+
+ expect { click_link "Remove project" }.to change {Project.count}.by(-1)
+ end
end
end