diff options
Diffstat (limited to 'activerecord/test/cases/associations/identity_map_test.rb')
-rw-r--r-- | activerecord/test/cases/associations/identity_map_test.rb | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/activerecord/test/cases/associations/identity_map_test.rb b/activerecord/test/cases/associations/identity_map_test.rb index 73ea13fa7a..9b8635774c 100644 --- a/activerecord/test/cases/associations/identity_map_test.rb +++ b/activerecord/test/cases/associations/identity_map_test.rb @@ -2,13 +2,10 @@ require "cases/helper" require 'models/author' require 'models/post' +if ActiveRecord::IdentityMap.enabled? 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 @@ -137,3 +134,4 @@ class InverseHasManyIdentityMapTest < ActiveRecord::TestCase assert_equal m.name, i.author.name, "Name of man should be the same after changes to replaced-child-owned instance" end end +end |