aboutsummaryrefslogtreecommitdiffstats
path: root/activejob/test/cases/logging_test.rb
diff options
context:
space:
mode:
authorCristian Bica <cristian.bica@gmail.com>2014-08-16 00:02:06 +0300
committerCristian Bica <cristian.bica@gmail.com>2014-08-16 00:02:06 +0300
commit788aee5acf195d55914e086540f907d9291e9d24 (patch)
tree614c906eeb3f5eaec9d4ac170d105445b7fc5b73 /activejob/test/cases/logging_test.rb
parentc2f1eca19409cbbe72bf89b2087b212341201aa1 (diff)
downloadrails-788aee5acf195d55914e086540f907d9291e9d24.tar.gz
rails-788aee5acf195d55914e086540f907d9291e9d24.tar.bz2
rails-788aee5acf195d55914e086540f907d9291e9d24.zip
Moved AR testing from using global variable to thread variable
Diffstat (limited to 'activejob/test/cases/logging_test.rb')
-rw-r--r--activejob/test/cases/logging_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activejob/test/cases/logging_test.rb b/activejob/test/cases/logging_test.rb
index 3f21fa644c..f0f315c906 100644
--- a/activejob/test/cases/logging_test.rb
+++ b/activejob/test/cases/logging_test.rb
@@ -23,7 +23,7 @@ class AdapterTest < ActiveSupport::TestCase
def setup
super
- $BUFFER = []
+ Thread.current[:ajbuffer] = []
@old_logger = ActiveJob::Base.logger
@logger = ActiveSupport::TaggedLogging.new(TestLogger.new)
set_logger @logger