test/plugins/cron_test.rb in rocketjob-3.4.3 vs test/plugins/cron_test.rb in rocketjob-3.5.0

- old
+ new

@@ -13,11 +13,11 @@ class FailOnceCronJob < RocketJob::Job include RocketJob::Plugins::Cron def perform - raise 'oh no' if failure_count == 0 + raise 'oh no' if failure_count.zero? end end describe RocketJob::Plugins::Cron do before do @@ -58,11 +58,10 @@ assert @job.valid? refute @job.new_record? assert_equal Time.parse('2015-12-10 06:00:00 UTC'), @job.run_at end end - end describe '#save' do it 'updates run_at for a new record' do @job = CronJob.create!(cron_schedule: '* 1 * * *') @@ -160,9 +159,8 @@ job assert_equal 1, CronJob.count end end end - end end end