diff options
author | Emilio Tagua <miloops@gmail.com> | 2011-02-15 12:40:41 -0300 |
---|---|---|
committer | Emilio Tagua <miloops@gmail.com> | 2011-02-15 12:40:41 -0300 |
commit | f1778eb44a71595dff271001ee19c7bf6d0a0101 (patch) | |
tree | ca65e298769998a80968224ed2ef69acf6046ccd /activerecord/test/cases/associations/identity_map_test.rb | |
parent | ca75091fc72224a5f46f95564578a20b88543458 (diff) | |
download | rails-f1778eb44a71595dff271001ee19c7bf6d0a0101.tar.gz rails-f1778eb44a71595dff271001ee19c7bf6d0a0101.tar.bz2 rails-f1778eb44a71595dff271001ee19c7bf6d0a0101.zip |
Run tests without IdentityMap when IM=false is given.
Diffstat (limited to 'activerecord/test/cases/associations/identity_map_test.rb')
-rw-r--r-- | activerecord/test/cases/associations/identity_map_test.rb | 4 |
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 |