blob: a91ed01f45c16f3c91449b29f377ce01ced8b37e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
require 'helper'
require 'jobs/rescue_job'
require 'active_support/core_ext/object/inclusion'
class RescueTest < ActiveSupport::TestCase
setup do
$BUFFER = []
end
test 'rescue perform exception with retry' do
job = RescueJob.new
job.execute("david")
assert_equal [ "rescued from StandardError", "performed beautifully" ], $BUFFER
end
end
|