diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-10-20 11:43:02 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-10-20 11:43:02 +0300 |
commit | d9ab72d6080f594d0b3cae15f14b3ef2c6c638cb (patch) | |
tree | 2341ef426af70ad1e289c38036737e04b0aa5007 /spec/services/packages/composer | |
parent | d6e514dd13db8947884cd58fe2a9c2a063400a9b (diff) |
Add latest changes from gitlab-org/gitlab@14-4-stable-eev14.4.0-rc42
Diffstat (limited to 'spec/services/packages/composer')
-rw-r--r-- | spec/services/packages/composer/create_package_service_spec.rb | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/spec/services/packages/composer/create_package_service_spec.rb b/spec/services/packages/composer/create_package_service_spec.rb index 2ffd0a269f2..593777faa55 100644 --- a/spec/services/packages/composer/create_package_service_spec.rb +++ b/spec/services/packages/composer/create_package_service_spec.rb @@ -24,25 +24,6 @@ RSpec.describe Packages::Composer::CreatePackageService do let(:created_package) { Packages::Package.composer.last } - shared_examples 'using the cache update worker' do - context 'with remove_composer_v1_cache_code enabled' do - it 'does not enqueue a cache update job' do - expect(::Packages::Composer::CacheUpdateWorker).not_to receive(:perform_async) - - subject - end - end - - context 'with remove_composer_v1_cache_code disabled' do - it 'enqueues a cache update job' do - stub_feature_flags(remove_composer_v1_cache_code: true) - expect(::Packages::Composer::CacheUpdateWorker).not_to receive(:perform_async) - - subject - end - end - end - context 'without an existing package' do context 'with a branch' do let(:branch) { project.repository.find_branch('master') } @@ -64,7 +45,6 @@ RSpec.describe Packages::Composer::CreatePackageService do it_behaves_like 'assigns build to package' it_behaves_like 'assigns status to package' - it_behaves_like 'using the cache update worker' end context 'with a tag' do @@ -89,7 +69,6 @@ RSpec.describe Packages::Composer::CreatePackageService do it_behaves_like 'assigns build to package' it_behaves_like 'assigns status to package' - it_behaves_like 'using the cache update worker' end end @@ -106,8 +85,6 @@ RSpec.describe Packages::Composer::CreatePackageService do .to change { Packages::Package.composer.count }.by(0) .and change { Packages::Composer::Metadatum.count }.by(0) end - - it_behaves_like 'using the cache update worker' end context 'belonging to another project' do @@ -129,8 +106,6 @@ RSpec.describe Packages::Composer::CreatePackageService do .to change { Packages::Package.composer.count }.by(1) .and change { Packages::Composer::Metadatum.count }.by(1) end - - it_behaves_like 'using the cache update worker' end end end |