Permalink
Browse files

test for #5038

  • Loading branch information...
1 parent d4fa120 commit 39debfc854c782f263a8340b63c9d8892f92a94b Neeraj Singh committed with josevalim Sep 8, 2010
Showing with 8 additions and 0 deletions.
  1. +8 −0 activeresource/test/cases/base_test.rb
@@ -620,6 +620,14 @@ def test_id_from_response_without_location
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

0 comments on commit 39debfc

Please sign in to comment.