aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/associations/identity_map_test.rb
diff options
context:
space:
mode:
authorEmilio Tagua <miloops@gmail.com>2011-02-15 12:40:41 -0300
committerEmilio Tagua <miloops@gmail.com>2011-02-15 12:40:41 -0300
commitf1778eb44a71595dff271001ee19c7bf6d0a0101 (patch)
treeca65e298769998a80968224ed2ef69acf6046ccd /activerecord/test/cases/associations/identity_map_test.rb
parentca75091fc72224a5f46f95564578a20b88543458 (diff)
downloadrails-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.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