test/plugins/job/worker_test.rb in rocketjob-3.4.3 vs test/plugins/job/worker_test.rb in rocketjob-3.5.0
- old
+ new
@@ -96,11 +96,11 @@
it 'silence logging when log_level is set' do
@job = NoisyJob.new
@job.log_level = :warn
logged = false
- @job.logger.stub(:log_internal, -> level, index, message, payload, exception { logged = true if message.include?('some very noisy logging') }) do
+ @job.logger.stub(:log_internal, ->(_level, _index, message, _payload, _exception) { logged = true if message.include?('some very noisy logging') }) do
@job.perform_now
end
assert_equal false, logged
end
@@ -191,10 +191,9 @@
assert_equal job.started_at, active_worker.started_at
assert active_worker.duration_s
assert active_worker.duration
end
end
-
end
end
end
end