aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorEmilio Tagua <miloops@gmail.com>2011-04-05 17:01:54 -0300
committerJosé Valim <jose.valim@gmail.com>2011-04-05 22:08:00 +0200
commit18dde7bf4ffffc93c9b32df65c168df29a898fbb (patch)
tree6dffe536fd3656cd695523fce6781c15ddedacda /activerecord
parentcb9e501a2893ec7e210a1de2550cb1ecf16d5c90 (diff)
downloadrails-18dde7bf4ffffc93c9b32df65c168df29a898fbb.tar.gz
rails-18dde7bf4ffffc93c9b32df65c168df29a898fbb.tar.bz2
rails-18dde7bf4ffffc93c9b32df65c168df29a898fbb.zip
Disable IdentityMap in log tests, it's not important and when running tests rake task it logs more messages in the tested buffer.
Signed-off-by: José Valim <jose.valim@gmail.com>
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/test/cases/log_subscriber_test.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/activerecord/test/cases/log_subscriber_test.rb b/activerecord/test/cases/log_subscriber_test.rb
index 8ebde933b4..5f55299065 100644
--- a/activerecord/test/cases/log_subscriber_test.rb
+++ b/activerecord/test/cases/log_subscriber_test.rb
@@ -8,6 +8,8 @@ class LogSubscriberTest < ActiveRecord::TestCase
def setup
@old_logger = ActiveRecord::Base.logger
+ @using_identity_map = ActiveRecord::IdentityMap.enabled?
+ ActiveRecord::IdentityMap.enabled = false
super
ActiveRecord::LogSubscriber.attach_to(:active_record)
end
@@ -16,6 +18,7 @@ class LogSubscriberTest < ActiveRecord::TestCase
super
ActiveRecord::LogSubscriber.log_subscribers.pop
ActiveRecord::Base.logger = @old_logger
+ ActiveRecord::IdentityMap.enabled = @using_identity_map
end
def set_logger(logger)