aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/associations/identity_map_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/test/cases/associations/identity_map_test.rb')
-rw-r--r--activerecord/test/cases/associations/identity_map_test.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/activerecord/test/cases/associations/identity_map_test.rb b/activerecord/test/cases/associations/identity_map_test.rb
index 3d3ae0594b..07dc3deff4 100644
--- a/activerecord/test/cases/associations/identity_map_test.rb
+++ b/activerecord/test/cases/associations/identity_map_test.rb
@@ -5,6 +5,10 @@ require 'models/post'
class InverseHasManyIdentityMapTest < ActiveRecord::TestCase
fixtures :authors, :posts
+ def setup
+ skip unless ActiveRecord::IdentityMap.enabled?
+ end
+
def test_parent_instance_should_be_shared_with_every_child_on_find
m = Author.first
is = m.posts