diff options
Diffstat (limited to 'spec/workers/expire_job_cache_worker_spec.rb')
-rw-r--r-- | spec/workers/expire_job_cache_worker_spec.rb | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/spec/workers/expire_job_cache_worker_spec.rb b/spec/workers/expire_job_cache_worker_spec.rb deleted file mode 100644 index e9af39ed2df..00000000000 --- a/spec/workers/expire_job_cache_worker_spec.rb +++ /dev/null @@ -1,31 +0,0 @@ -# frozen_string_literal: true - -require 'spec_helper' - -RSpec.describe ExpireJobCacheWorker do - let_it_be(:pipeline) { create(:ci_empty_pipeline) } - - let(:project) { pipeline.project } - - describe '#perform' do - context 'with a job in the pipeline' do - let_it_be(:job) { create(:ci_build, pipeline: pipeline) } - - let(:job_args) { job.id } - - it_behaves_like 'an idempotent worker' - - it_behaves_like 'worker with data consistency', - described_class, - data_consistency: :delayed - end - - context 'when there is no job in the pipeline' do - it 'does not change the etag store' do - expect(Gitlab::EtagCaching::Store).not_to receive(:new) - - perform_multiple(non_existing_record_id) - end - end - end -end |