Upgrade to Rails 2.2.0
As a side benefit, fix an (non-user-visible) bug in display_s5(). Also fixed a bug where removing orphaned pages did not expire cached summary pages.
This commit is contained in:
parent
39348c65c2
commit
7600aef48b
827 changed files with 123652 additions and 11027 deletions
|
@ -84,7 +84,7 @@ class BaseLoadTest < Test::Unit::TestCase
|
|||
end
|
||||
|
||||
def test_load_collection_with_unknown_resource
|
||||
Person.send!(:remove_const, :Address) if Person.const_defined?(:Address)
|
||||
Person.__send__(:remove_const, :Address) if Person.const_defined?(:Address)
|
||||
assert !Person.const_defined?(:Address), "Address shouldn't exist until autocreated"
|
||||
addresses = silence_warnings { @person.load(:addresses => @addresses).addresses }
|
||||
assert Person.const_defined?(:Address), "Address should have been autocreated"
|
||||
|
@ -100,7 +100,7 @@ class BaseLoadTest < Test::Unit::TestCase
|
|||
end
|
||||
|
||||
def test_load_collection_with_single_unknown_resource
|
||||
Person.send!(:remove_const, :Address) if Person.const_defined?(:Address)
|
||||
Person.__send__(:remove_const, :Address) if Person.const_defined?(:Address)
|
||||
assert !Person.const_defined?(:Address), "Address shouldn't exist until autocreated"
|
||||
addresses = silence_warnings { @person.load(:addresses => [ @first_address ]).addresses }
|
||||
assert Person.const_defined?(:Address), "Address should have been autocreated"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue