summaryrefslogtreecommitdiff
path: root/spec/features/projects_spec.rb
diff options
context:
space:
mode:
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