1
0
Fork 0
mirror of https://github.com/jnunemaker/httparty synced 2023-03-27 23:23:07 -04:00

spec'd empty responses

This commit is contained in:
John Nunemaker 2009-01-28 13:17:39 -05:00
parent 85f7c35bcf
commit 790764ed74
2 changed files with 6 additions and 0 deletions

0
spec/fixtures/empty.xml vendored Normal file
View file

View file

@ -179,5 +179,11 @@ describe HTTParty do
result = HTTParty.get('http://foobar.com')
result.should == {"Entities"=>{"href"=>"https://s3-sandbox.parature.com/api/v1/5578/5633/Account", "results"=>"0", "total"=>"0", "page_size"=>"25", "page"=>"1"}}
end
it "should parse empty response fine" do
stub_http_response_with('empty.xml')
result = HTTParty.get('http://foobar.com')
result.should == nil
end
end
end