Skip to content

Commit

Permalink
adding xml tags to tests
Browse files Browse the repository at this point in the history
  • Loading branch information
guilhermesilveira committed Oct 19, 2010
1 parent ad8262f commit 871ea02
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/spec/requests/http/adapter_spec.rb
Expand Up @@ -14,7 +14,7 @@
end

it "should put and respond 200 code" do
@client.at("/test").put("test").response.code.should == 200
@client.at("/test").as("application/xml").put("<test></test>").response.code.should == 200
end

it "should delete and respond 200 code" do
Expand All @@ -30,11 +30,11 @@
end

it "should post! and respond 201 code" do
@client.at("/test").post!("test").should respond_with_status(201)
@client.at("/test").as("application/xml").post!("<test></test>").should respond_with_status(201)
end

it "should put! and respond 200 code" do
@client.at("/test").put!("test").response.code.should == 200
@client.at("/test").as("application/xml").put!("<test></test>").response.code.should == 200
end

it "should delete! and respond 200 code" do
Expand Down

0 comments on commit 871ea02

Please sign in to comment.