aboutsummaryrefslogtreecommitdiffstats
path: root/activeresource/test/base
diff options
context:
space:
mode:
Diffstat (limited to 'activeresource/test/base')
-rw-r--r--activeresource/test/base/load_test.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/activeresource/test/base/load_test.rb b/activeresource/test/base/load_test.rb
index 28f1cfc97c..622afb2fdf 100644
--- a/activeresource/test/base/load_test.rb
+++ b/activeresource/test/base/load_test.rb
@@ -61,7 +61,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"
@@ -77,7 +77,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"
@@ -108,4 +108,4 @@ class BaseLoadTest < Test::Unit::TestCase
n = Highrise::Note.new(:comments => [{ :name => "1" }])
assert_kind_of Highrise::Comment, n.comments.first
end
-end \ No newline at end of file
+end