aboutsummaryrefslogtreecommitdiffstats
path: root/activejob/test/jobs/rescue_job.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activejob/test/jobs/rescue_job.rb')
-rw-r--r--activejob/test/jobs/rescue_job.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activejob/test/jobs/rescue_job.rb b/activejob/test/jobs/rescue_job.rb
index acf2b81515..e42de4876e 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
- $BUFFER << "rescued from ArgumentError"
+ Thread.current[:ajbuffer] << "rescued from ArgumentError"
arguments[0] = "DIFFERENT!"
retry_now
end
@@ -14,7 +14,7 @@ class RescueJob < ActiveJob::Base
when "other"
raise OtherError
else
- $BUFFER << "performed beautifully"
+ Thread.current[:ajbuffer] << "performed beautifully"
end
end
end