diff options
author | José Valim <jose.valim@gmail.com> | 2010-07-20 21:20:19 +0200 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-07-20 21:21:14 +0200 |
commit | d4151d7f0ac4a0823e788c0beed9ec2476e72386 (patch) | |
tree | 79576edab9209c77bfb118296ee40f4bad9b7a64 /activerecord/test/cases | |
parent | e1df4b956882f0c10a310088c1c13dcaa655a3b1 (diff) | |
download | rails-d4151d7f0ac4a0823e788c0beed9ec2476e72386.tar.gz rails-d4151d7f0ac4a0823e788c0beed9ec2476e72386.tar.bz2 rails-d4151d7f0ac4a0823e788c0beed9ec2476e72386.zip |
Fix a failing test in Railtie and properly define all severity levels in MockLogger for LogSubscriber.
Diffstat (limited to 'activerecord/test/cases')
-rw-r--r-- | activerecord/test/cases/log_subscriber_test.rb | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/activerecord/test/cases/log_subscriber_test.rb b/activerecord/test/cases/log_subscriber_test.rb index 2a207bed8a..91ba852ecd 100644 --- a/activerecord/test/cases/log_subscriber_test.rb +++ b/activerecord/test/cases/log_subscriber_test.rb @@ -22,7 +22,6 @@ class LogSubscriberTest < ActiveRecord::TestCase end def test_basic_query_logging - @logger.debugging = true Developer.all wait assert_equal 1, @logger.logged(:debug).size @@ -31,7 +30,6 @@ class LogSubscriberTest < ActiveRecord::TestCase end def test_cached_queries - @logger.debugging = true ActiveRecord::Base.cache do Developer.all Developer.all @@ -43,14 +41,14 @@ class LogSubscriberTest < ActiveRecord::TestCase end def test_basic_query_doesnt_log_when_level_is_not_debug - @logger.debugging = false + @logger.level = 1 Developer.all wait assert_equal 0, @logger.logged(:debug).size end def test_cached_queries_doesnt_log_when_level_is_not_debug - @logger.debugging = false + @logger.level = 1 ActiveRecord::Base.cache do Developer.all Developer.all |