summaryrefslogtreecommitdiff
path: root/spec/services/projects
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2017-02-03 23:44:35 +0800
committerLin Jen-Shin <godfat@godfat.org>2017-02-03 23:44:35 +0800
commit1868b8af25a6ecf3e893782b3ff750da57dc07c3 (patch)
tree127932b24bc82574779a658a85c2ae1a01010e14 /spec/services/projects
parentaaf382d52b87ba13f0cf904e076d9e3eac8d77d9 (diff)
downloadgitlab-ce-1868b8af25a6ecf3e893782b3ff750da57dc07c3.tar.gz
Move the tests to spec/services/projects/destroy_service_spec.rb
Diffstat (limited to 'spec/services/projects')
-rw-r--r--spec/services/projects/destroy_service_spec.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/services/projects/destroy_service_spec.rb b/spec/services/projects/destroy_service_spec.rb
index 90771825f5c..38bd2ed773e 100644
--- a/spec/services/projects/destroy_service_spec.rb
+++ b/spec/services/projects/destroy_service_spec.rb
@@ -47,8 +47,9 @@ describe Projects::DestroyService, services: true do
it_behaves_like 'deleting the project'
end
- context 'delete with pipeline' do # which has optimistic locking
+ context 'delete with pipeline and build' do # which has optimistic locking
let!(:pipeline) { create(:ci_pipeline, project: project) }
+ let!(:build) { create(:ci_build, :artifacts, pipeline: pipeline) }
before do
expect(project).to receive(:destroy!).and_call_original