aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--test/cases/rescue_test.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/cases/rescue_test.rb b/test/cases/rescue_test.rb
index 0e995405f7..3d4831bc62 100644
--- a/test/cases/rescue_test.rb
+++ b/test/cases/rescue_test.rb
@@ -9,13 +9,15 @@ class RescueTest < ActiveSupport::TestCase
end
test 'rescue perform exception with retry' do
- RescueJob.enqueue("david")
+ job = RescueJob.new
+ job.execute(SecureRandom.uuid, "david")
assert_equal [ "rescued from ArgumentError", "performed beautifully" ], $BUFFER
end
test 'let through unhandled perform exception' do
+ job = RescueJob.new
assert_raises(RescueJob::OtherError) do
- RescueJob.enqueue("other")
+ job.execute(SecureRandom.uuid, "other")
end
end
end