diff options
Diffstat (limited to 'spec/workers/packages/composer/cache_cleanup_worker_spec.rb')
-rw-r--r-- | spec/workers/packages/composer/cache_cleanup_worker_spec.rb | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/spec/workers/packages/composer/cache_cleanup_worker_spec.rb b/spec/workers/packages/composer/cache_cleanup_worker_spec.rb index e69fe55acc2..39eac4e4ae1 100644 --- a/spec/workers/packages/composer/cache_cleanup_worker_spec.rb +++ b/spec/workers/packages/composer/cache_cleanup_worker_spec.rb @@ -18,12 +18,8 @@ RSpec.describe Packages::Composer::CacheCleanupWorker, type: :worker do cache_file4.update_columns(namespace_id: nil) end - it 'deletes expired packages' do - expect { subject }.to change { Packages::Composer::CacheFile.count }.by(-2) - expect { cache_file1.reload }.not_to raise_error ActiveRecord::RecordNotFound - expect { cache_file2.reload }.not_to raise_error ActiveRecord::RecordNotFound - expect { cache_file3.reload }.to raise_error ActiveRecord::RecordNotFound - expect { cache_file4.reload }.to raise_error ActiveRecord::RecordNotFound + it 'does nothing' do + expect { subject }.not_to change { Packages::Composer::CacheFile.count } end end end |