Fixed failing test
This commit is contained in:
parent
243d74eb30
commit
68f25a40f5
@ -9,13 +9,15 @@ class RescueTest < ActiveSupport::TestCase
|
|||||||
end
|
end
|
||||||
|
|
||||||
test 'rescue perform exception with retry' do
|
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
|
assert_equal [ "rescued from ArgumentError", "performed beautifully" ], $BUFFER
|
||||||
end
|
end
|
||||||
|
|
||||||
test 'let through unhandled perform exception' do
|
test 'let through unhandled perform exception' do
|
||||||
|
job = RescueJob.new
|
||||||
assert_raises(RescueJob::OtherError) do
|
assert_raises(RescueJob::OtherError) do
|
||||||
RescueJob.enqueue("other")
|
job.execute(SecureRandom.uuid, "other")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user