From f1778eb44a71595dff271001ee19c7bf6d0a0101 Mon Sep 17 00:00:00 2001 From: Emilio Tagua Date: Tue, 15 Feb 2011 12:40:41 -0300 Subject: Run tests without IdentityMap when IM=false is given. --- activerecord/test/cases/associations/identity_map_test.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'activerecord/test/cases/associations/identity_map_test.rb') 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 -- cgit v1.2.3