diff options
author | José Valim <jose.valim@gmail.com> | 2010-07-26 19:14:24 +0200 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-07-26 19:14:56 +0200 |
commit | dd61a817dea85990f13664d74bca15bc5796b76e (patch) | |
tree | 6ba9c03834a6aed9e2a691208a9c2ce6472aa92d /activerecord/test | |
parent | 32844cbc025b394ecd0b9fe2fd755b4e5b6cd4e7 (diff) | |
download | rails-dd61a817dea85990f13664d74bca15bc5796b76e.tar.gz rails-dd61a817dea85990f13664d74bca15bc5796b76e.tar.bz2 rails-dd61a817dea85990f13664d74bca15bc5796b76e.zip |
Move runtime back to the Thread.current
Diffstat (limited to 'activerecord/test')
-rw-r--r-- | activerecord/test/cases/log_subscriber_test.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/activerecord/test/cases/log_subscriber_test.rb b/activerecord/test/cases/log_subscriber_test.rb index 342daa19df..cbaaca764b 100644 --- a/activerecord/test/cases/log_subscriber_test.rb +++ b/activerecord/test/cases/log_subscriber_test.rb @@ -57,4 +57,8 @@ class LogSubscriberTest < ActiveRecord::TestCase wait assert_equal 0, @logger.logged(:debug).size end + + def test_initializes_runtime + Thread.new { assert_equal 0, ActiveRecord::LogSubscriber.runtime }.join + end end |