aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/identity_map_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/test/cases/identity_map_test.rb')
-rw-r--r--activerecord/test/cases/identity_map_test.rb17
1 files changed, 0 insertions, 17 deletions
diff --git a/activerecord/test/cases/identity_map_test.rb b/activerecord/test/cases/identity_map_test.rb
index 959c303d88..649715fbb5 100644
--- a/activerecord/test/cases/identity_map_test.rb
+++ b/activerecord/test/cases/identity_map_test.rb
@@ -1,5 +1,4 @@
require "cases/helper"
-require "active_support/log_subscriber/test_helper"
require 'models/developer'
require 'models/project'
@@ -28,8 +27,6 @@ class IdentityMapTest < ActiveRecord::TestCase
:developers_projects, :computers, :authors, :author_addresses,
:posts, :tags, :taggings, :comments, :subscribers
- include ActiveSupport::LogSubscriber::TestHelper
-
##############################################################################
# Basic tests checking if IM is functioning properly on basic find operations#
##############################################################################
@@ -386,20 +383,6 @@ class IdentityMapTest < ActiveRecord::TestCase
assert_not_nil post.title
end
- def test_log
- # FIXME: Can't seem to figure out why it isn't logging in test, works fine in a real app
- pending "LogSubscriber wonkiness"
- @old_logger = ActiveRecord::Base.logger
- ActiveRecord::LogSubscriber.attach_to(:active_record)
-
- Post.find 1
- Post.find 1
- assert_match(/From Identity Map/, @logger.logged(:debug).last)
- ensure
- ActiveRecord::LogSubscriber.log_subscribers.pop
- ActiveRecord::Base.logger = @old_logger
- end
-
# Currently AR is not allowing changing primary key (see Persistence#update)
# So we ignore it. If this changes, this test needs to be uncommented.
# def test_updating_of_pkey