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

Added spec for HTTParty::Request#format method that I added in last commit.

This commit is contained in:
John Nunemaker 2008-12-06 19:45:50 -05:00
parent aa09eb4c65
commit 5ba768e29a

View file

@ -22,6 +22,12 @@ describe HTTParty::Request do
end
end
describe "#format" do
it "should return the correct parsing format" do
@request.format.should == :xml
end
end
describe "uri" do
it "should be normalized" do
request = HTTParty::Request.new(Net::HTTP::Get, '', :base_uri => 'api.foo.com')