test/plugins/job/logger_test.rb in rocketjob-2.0.0.rc3 vs test/plugins/job/logger_test.rb in rocketjob-2.0.0

- old
+ new

@@ -41,15 +41,15 @@ end assert info_called, "In Plugins::Job::Logger.around_perform logger.info('Start #perform') not called" end it 'adds completed logging' do - @job = LoggerJob.new - benchmark_called = false - @job.logger.stub(:benchmark_info, -> description, *args { benchmark_called = true if description == 'Completed #perform' }) do + @job = LoggerJob.new + measure_called = false + @job.logger.stub(:measure_info, -> description, *args { measure_called = true if description == 'Completed #perform' }) do @job.perform_now end - assert benchmark_called, "In Plugins::Job::Logger.around_perform logger.benchmark_info('Completed #perform') not called" + assert measure_called, "In Plugins::Job::Logger.around_perform logger.measure_info('Completed #perform') not called" end end end end