diff options
author | Cristian Bica <cristian.bica@gmail.com> | 2014-06-12 14:30:53 +0300 |
---|---|---|
committer | Cristian Bica <cristian.bica@gmail.com> | 2014-06-12 14:30:53 +0300 |
commit | 68f25a40f528967142d1a37762d96e0020897005 (patch) | |
tree | a6daf4618a563199489036431937e828c8dafa44 /test/cases | |
parent | 243d74eb30464dc95cb07c0bd14cc086f9cd7022 (diff) | |
download | rails-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.rb | 6 |
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 |