Permalink
Browse files

Merge pull request #5161 from arunagw/put_patch_build_fix

build fixed -- put and patch both are allowed for update
  • Loading branch information...
2 parents 84cd58f + d03076f commit 97df6f38c9f5b99f3ec55d25185c8d8391886b1e @josevalim josevalim 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

0 comments on commit 97df6f3

Please sign in to comment.