diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2006-09-05 00:02:17 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2006-09-05 00:02:17 +0000 |
commit | 26b76ea4ce6837a158d99b1071f6ae408cf65854 (patch) | |
tree | a13e955645ffc8ed493fb11c05e6e986c7bcc2c0 /activeresource/test | |
parent | b445ab986a2c177621a2154b0559be4c700abeeb (diff) | |
download | rails-26b76ea4ce6837a158d99b1071f6ae408cf65854.tar.gz rails-26b76ea4ce6837a158d99b1071f6ae408cf65854.tar.bz2 rails-26b76ea4ce6837a158d99b1071f6ae408cf65854.zip |
load expects a Hash
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5008 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activeresource/test')
-rw-r--r-- | activeresource/test/base/load_test.rb | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/activeresource/test/base/load_test.rb b/activeresource/test/base/load_test.rb index 726e7100b7..97faebc143 100644 --- a/activeresource/test/base/load_test.rb +++ b/activeresource/test/base/load_test.rb @@ -14,10 +14,9 @@ class BaseLoadTest < Test::Unit::TestCase @person = Person.new end - def test_load_nil - assert_nothing_raised do - assert_equal @person, @person.load(nil) - end + def test_load_expects_hash + assert_raise(ArgumentError) { @person.load nil } + assert_raise(ArgumentError) { @person.load '<person id="1"/>' } end def test_load_simple_hash |