diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-06-16 18:25:58 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-06-16 18:25:58 +0000 |
commit | a5f4bba440d7f9ea47046a0a561d49adf0a1e6d4 (patch) | |
tree | fb69158581673816a8cd895f9d352dcb3c678b1e /spec/services/packages/debian/process_changes_service_spec.rb | |
parent | d16b2e8639e99961de6ddc93909f3bb5c1445ba1 (diff) | |
download | gitlab-ce-a5f4bba440d7f9ea47046a0a561d49adf0a1e6d4.tar.gz |
Add latest changes from gitlab-org/gitlab@14-0-stable-eev14.0.0-rc42
Diffstat (limited to 'spec/services/packages/debian/process_changes_service_spec.rb')
-rw-r--r-- | spec/services/packages/debian/process_changes_service_spec.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/spec/services/packages/debian/process_changes_service_spec.rb b/spec/services/packages/debian/process_changes_service_spec.rb index f23471659bc..3069a2806b2 100644 --- a/spec/services/packages/debian/process_changes_service_spec.rb +++ b/spec/services/packages/debian/process_changes_service_spec.rb @@ -13,6 +13,7 @@ RSpec.describe Packages::Debian::ProcessChangesService do context 'with valid package file' do it 'updates package and package file', :aggregate_failures do + expect(::Packages::Debian::GenerateDistributionWorker).to receive(:perform_async).with(:project, distribution.id) expect { subject.execute } .to change { Packages::Package.count }.from(1).to(2) .and not_change { Packages::PackageFile.count } @@ -30,6 +31,7 @@ RSpec.describe Packages::Debian::ProcessChangesService do let(:package_file) { incoming.package_files.first } it 'raise ExtractionError', :aggregate_failures do + expect(::Packages::Debian::GenerateDistributionWorker).not_to receive(:perform_async) expect { subject.execute } .to not_change { Packages::Package.count } .and not_change { Packages::PackageFile.count } @@ -47,6 +49,7 @@ RSpec.describe Packages::Debian::ProcessChangesService do end it 'remove the package file', :aggregate_failures do + expect(::Packages::Debian::GenerateDistributionWorker).not_to receive(:perform_async) expect { subject.execute } .to not_change { Packages::Package.count } .and not_change { Packages::PackageFile.count } |