diff options
author | Oswaldo Ferreira <oswaldo@gitlab.com> | 2018-12-18 16:29:48 -0200 |
---|---|---|
committer | Oswaldo Ferreira <oswaldo@gitlab.com> | 2018-12-18 16:48:59 -0200 |
commit | cafc543ce882f58abbd04b632a965d57b36e8ff6 (patch) | |
tree | 6a21c2dd9457fcc81e1385da9fddcdf459aa9025 /spec/workers/stuck_merge_jobs_worker_spec.rb | |
parent | aa2c729e8e90968419d59281c0e6021f77877060 (diff) | |
download | gitlab-ce-cafc543ce882f58abbd04b632a965d57b36e8ff6.tar.gz |
Adjust flaky Rails logger call test
Diffstat (limited to 'spec/workers/stuck_merge_jobs_worker_spec.rb')
-rw-r--r-- | spec/workers/stuck_merge_jobs_worker_spec.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/workers/stuck_merge_jobs_worker_spec.rb b/spec/workers/stuck_merge_jobs_worker_spec.rb index c2c2a5f9121..5aaff27a6b2 100644 --- a/spec/workers/stuck_merge_jobs_worker_spec.rb +++ b/spec/workers/stuck_merge_jobs_worker_spec.rb @@ -38,7 +38,8 @@ describe StuckMergeJobsWorker do create(:merge_request, :locked, merge_jid: '123') create(:merge_request, :locked, merge_jid: '456') - expect(Rails).to receive_message_chain(:logger, :info).with('Updated state of locked merge jobs. JIDs: 123, 456') + expect(described_class).to receive_message_chain(:logger, :info) + .with('Updated state of locked merge jobs. JIDs: 123, 456') worker.perform end |