diff options
Diffstat (limited to 'activejob/test/jobs/rescue_job.rb')
-rw-r--r-- | activejob/test/jobs/rescue_job.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activejob/test/jobs/rescue_job.rb b/activejob/test/jobs/rescue_job.rb index e42de4876e..77084160d9 100644 --- a/activejob/test/jobs/rescue_job.rb +++ b/activejob/test/jobs/rescue_job.rb @@ -2,7 +2,7 @@ class RescueJob < ActiveJob::Base class OtherError < StandardError; end rescue_from(ArgumentError) do - Thread.current[:ajbuffer] << "rescued from ArgumentError" + JobBuffer.add('rescued from ArgumentError') arguments[0] = "DIFFERENT!" retry_now end @@ -14,7 +14,7 @@ class RescueJob < ActiveJob::Base when "other" raise OtherError else - Thread.current[:ajbuffer] << "performed beautifully" + JobBuffer.add('performed beautifully') end end end |