test/plugins/retry_test.rb in rocketjob-3.4.3 vs test/plugins/retry_test.rb in rocketjob-3.5.0
- old
+ new
@@ -5,11 +5,11 @@
class RetryJob < RocketJob::Job
include RocketJob::Plugins::Retry
# Fails 5 times before succeeding
def perform
- raise "Oh No" unless rocket_job_failure_count >= 5
+ raise 'Oh No' unless rocket_job_failure_count >= 5
'DONE'
end
end
describe RocketJob::Plugins::Retry do
@@ -81,9 +81,8 @@
end
assert @job.failed?, -> { @job.attributes.ai }
end
end
-
end
end
end