diff options
Diffstat (limited to 'spec/services/projects/destroy_service_spec.rb')
-rw-r--r-- | spec/services/projects/destroy_service_spec.rb | 3 |
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 |