Skip to content

Instantly share code, notes, and snippets.

@dchelimsky
Created December 10, 2008 14:14
Show Gist options
  • Save dchelimsky/34333 to your computer and use it in GitHub Desktop.
Save dchelimsky/34333 to your computer and use it in GitHub Desktop.
describe "successful PUT" do
it "should be successful" do
template = savable(Template)
@response = request(resource(template), :method => "PUT")
@response.should be_successful
end
end
describe "unsuccessful PUT" do
it "should be successful" do
template = unsavable(Template)
@response = request(resource(template), :method => "PUT")
@response.should_not be_successful
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment