1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Don't use skip, just don't run anything, we don't have skip in Ruby 1.8

This commit is contained in:
Emilio Tagua 2011-02-18 16:20:15 -03:00
parent 3e5efb3708
commit 3927827dbe
2 changed files with 4 additions and 8 deletions

View file

@ -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

View file

@ -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