diff options
author | Neeraj Singh <neerajdotname@gmail.com> | 2010-09-08 13:52:13 -0400 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-09-18 20:49:41 +0200 |
commit | 39debfc854c782f263a8340b63c9d8892f92a94b (patch) | |
tree | e2d32ba70290b5bc3b9cdc18a2e80a986ac07267 | |
parent | d4fa120671e989eecb71c14647dd2051d28de4a5 (diff) | |
download | rails-39debfc854c782f263a8340b63c9d8892f92a94b.tar.gz rails-39debfc854c782f263a8340b63c9d8892f92a94b.tar.bz2 rails-39debfc854c782f263a8340b63c9d8892f92a94b.zip |
test for #5038
-rw-r--r-- | activeresource/test/cases/base_test.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/activeresource/test/cases/base_test.rb b/activeresource/test/cases/base_test.rb index 5910a2a378..b5914683e9 100644 --- a/activeresource/test/cases/base_test.rb +++ b/activeresource/test/cases/base_test.rb @@ -620,6 +620,14 @@ class BaseTest < Test::Unit::TestCase assert_nil p.__send__(:id_from_response, resp) end + def test_load_attributes_from_response + p = Person.new + resp = ActiveResource::Response.new(nil) + resp['Content-Length'] = "100" + assert_nil p.__send__(:load_attributes_from_response, resp) + end + + def test_create_with_custom_prefix matzs_house = StreetAddress.new(:person_id => 1) matzs_house.save |