diff options
author | Emilio Tagua <miloops@gmail.com> | 2011-02-18 16:20:15 -0300 |
---|---|---|
committer | Emilio Tagua <miloops@gmail.com> | 2011-02-18 16:20:15 -0300 |
commit | 3927827dbeae477cb29035107fc3ae49bf5fd1cb (patch) | |
tree | 4cdcdb4fa3e7cfbdbe9f97c1d9a3c072d4ba22a1 /activerecord/test/cases/associations/identity_map_test.rb | |
parent | 3e5efb37088dd9ff99f8e044d6cf82689cb3afcb (diff) | |
download | rails-3927827dbeae477cb29035107fc3ae49bf5fd1cb.tar.gz rails-3927827dbeae477cb29035107fc3ae49bf5fd1cb.tar.bz2 rails-3927827dbeae477cb29035107fc3ae49bf5fd1cb.zip |
Don't use skip, just don't run anything, we don't have skip in Ruby 1.8
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 |