Skip to content

Commit

Permalink
Add spec calling patch on REST.
Browse files Browse the repository at this point in the history
  • Loading branch information
Manfred committed Mar 3, 2014
1 parent 154ed0d commit d74c9f9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/rest_test.rb
Expand Up @@ -26,6 +26,13 @@
REST::Request._performed.last.should == [:delete, URI.parse(uri), nil, {}, {}]
end

it "should PATCH a resource" do
uri = 'http://example.com/resources/1'
body = 'name=Manfred'
REST.patch(uri, body)
REST::Request._performed.last.should == [:patch, URI.parse(uri), body, {}, {}]
end

it "should PUT a resource" do
uri = 'http://example.com/resources/1'
body = 'name=Manfred'
Expand Down

0 comments on commit d74c9f9

Please sign in to comment.