aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorEmilio Tagua <miloops@gmail.com>2011-02-18 16:20:15 -0300
committerEmilio Tagua <miloops@gmail.com>2011-02-18 16:20:15 -0300
commit3927827dbeae477cb29035107fc3ae49bf5fd1cb (patch)
tree4cdcdb4fa3e7cfbdbe9f97c1d9a3c072d4ba22a1 /activerecord
parent3e5efb37088dd9ff99f8e044d6cf82689cb3afcb (diff)
downloadrails-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')
-rw-r--r--activerecord/test/cases/associations/identity_map_test.rb6
-rw-r--r--activerecord/test/cases/identity_map_test.rb6
2 files changed, 4 insertions, 8 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
diff --git a/activerecord/test/cases/identity_map_test.rb b/activerecord/test/cases/identity_map_test.rb
index 6608802c23..d98638ab73 100644
--- a/activerecord/test/cases/identity_map_test.rb
+++ b/activerecord/test/cases/identity_map_test.rb
@@ -20,15 +20,12 @@ require "models/pirate"
require "models/bird"
require "models/parrot"
+if ActiveRecord::IdentityMap.enabled?
class IdentityMapTest < ActiveRecord::TestCase
fixtures :accounts, :companies, :developers, :projects, :topics,
:developers_projects, :computers, :authors, :author_addresses,
:posts, :tags, :taggings, :comments, :subscribers
- def setup
- skip unless ActiveRecord::IdentityMap.enabled?
- end
-
##############################################################################
# Basic tests checking if IM is functioning properly on basic find operations#
##############################################################################
@@ -402,3 +399,4 @@ class IdentityMapTest < ActiveRecord::TestCase
# end
end
+end