From 68f25a40f528967142d1a37762d96e0020897005 Mon Sep 17 00:00:00 2001 From: Cristian Bica Date: Thu, 12 Jun 2014 14:30:53 +0300 Subject: Fixed failing test --- test/cases/rescue_test.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'test') 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 -- cgit v1.2.3