Permalink
Browse files

put and patch both are allowed for update

  • Loading branch information...
1 parent 84cd58f commit d03076f206aaef86700521d7238426951f62fd7f @arunagw arunagw committed Feb 25, 2012
Showing with 7 additions and 1 deletion.
  1. +7 −1 railties/test/application/configuration_test.rb
@@ -281,8 +281,14 @@ def update
patch "/posts/1"
assert_match /update/, last_response.body
+ patch "/posts/1"
+ assert_equal 200, last_response.status
+
+ put "/posts/1"
+ assert_match /update/, last_response.body
+
put "/posts/1"
- assert_equal 404, last_response.status
+ assert_equal 200, last_response.status
end
test "request forgery token param can be changed" do

1 comment on commit d03076f

Owner

fxn commented on d03076f Feb 25, 2012

Thanks!

Please sign in to comment.