diff options
Diffstat (limited to 'spec/services/projects/destroy_service_spec.rb')
-rw-r--r-- | spec/services/projects/destroy_service_spec.rb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/spec/services/projects/destroy_service_spec.rb b/spec/services/projects/destroy_service_spec.rb index b22f276ee1f..9475f562d71 100644 --- a/spec/services/projects/destroy_service_spec.rb +++ b/spec/services/projects/destroy_service_spec.rb @@ -64,7 +64,7 @@ RSpec.describe Projects::DestroyService, :aggregate_failures do create(:ci_pipeline_artifact, pipeline: pipeline) create_list(:ci_build_trace_chunk, 3, build: builds[0]) - expect { destroy_project(project, project.owner, {}) }.not_to exceed_query_limit(recorder) + expect { destroy_project(project, project.first_owner, {}) }.not_to exceed_query_limit(recorder) end it_behaves_like 'deleting the project' @@ -78,6 +78,11 @@ RSpec.describe Projects::DestroyService, :aggregate_failures do end.not_to raise_error end + it 'reports the error' do + expect(Gitlab::ErrorTracking).to receive(:track_exception).and_call_original + destroy_project(project, user, {}) + end + it 'unmarks the project as "pending deletion"' do destroy_project(project, user, {}) |