diff options
Diffstat (limited to 'spec/services/packages/mark_package_for_destruction_service_spec.rb')
-rw-r--r-- | spec/services/packages/mark_package_for_destruction_service_spec.rb | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/spec/services/packages/mark_package_for_destruction_service_spec.rb b/spec/services/packages/mark_package_for_destruction_service_spec.rb index 125ec53ad61..d65e62b84a6 100644 --- a/spec/services/packages/mark_package_for_destruction_service_spec.rb +++ b/spec/services/packages/mark_package_for_destruction_service_spec.rb @@ -2,7 +2,7 @@ require 'spec_helper' -RSpec.describe Packages::MarkPackageForDestructionService do +RSpec.describe Packages::MarkPackageForDestructionService, feature_category: :package_registry do let_it_be(:user) { create(:user) } let_it_be_with_reload(:package) { create(:npm_package) } @@ -36,6 +36,12 @@ RSpec.describe Packages::MarkPackageForDestructionService do end it 'returns an error ServiceResponse' do + expect(Gitlab::ErrorTracking).to receive(:track_exception).with( + instance_of(StandardError), + project_id: package.project_id, + package_id: package.id + ) + response = service.execute expect(package).not_to receive(:sync_maven_metadata) |