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:
parent
aa09eb4c65
commit
5ba768e29a
1 changed files with 6 additions and 0 deletions
|
@ -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')
|
||||
|
|
Loading…
Add table
Reference in a new issue