aboutsummaryrefslogtreecommitdiffstats
path: root/test/cases
diff options
context:
space:
mode:
authorCristian Bica <cristian.bica@gmail.com>2014-06-12 14:30:53 +0300
committerCristian Bica <cristian.bica@gmail.com>2014-06-12 14:30:53 +0300
commit68f25a40f528967142d1a37762d96e0020897005 (patch)
treea6daf4618a563199489036431937e828c8dafa44 /test/cases
parent243d74eb30464dc95cb07c0bd14cc086f9cd7022 (diff)
downloadrails-68f25a40f528967142d1a37762d96e0020897005.tar.gz
rails-68f25a40f528967142d1a37762d96e0020897005.tar.bz2
rails-68f25a40f528967142d1a37762d96e0020897005.zip
Fixed failing test
Diffstat (limited to 'test/cases')
-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