diff options
Diffstat (limited to 'spec/workers/database/ci_namespace_mirrors_consistency_check_worker_spec.rb')
-rw-r--r-- | spec/workers/database/ci_namespace_mirrors_consistency_check_worker_spec.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/spec/workers/database/ci_namespace_mirrors_consistency_check_worker_spec.rb b/spec/workers/database/ci_namespace_mirrors_consistency_check_worker_spec.rb index 116026ea8f7..e5024c568cb 100644 --- a/spec/workers/database/ci_namespace_mirrors_consistency_check_worker_spec.rb +++ b/spec/workers/database/ci_namespace_mirrors_consistency_check_worker_spec.rb @@ -62,6 +62,15 @@ RSpec.describe Database::CiNamespaceMirrorsConsistencyCheckWorker do expect(worker).to receive(:log_extra_metadata_on_done).with(:results, expected_result) worker.perform end + + it 'calls the consistency_fix_service to fix the inconsistencies' do + allow_next_instance_of(Database::ConsistencyFixService) do |instance| + expect(instance).to receive(:execute).with( + ids: [missing_namespace.id] + ).and_call_original + end + worker.perform + end end end end |