Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit 97df6f38c9f5b99f3ec55d25185c8d8391886b1e 2 parents 84cd58f + d03076f
@josevalim josevalim authored
Showing with 7 additions and 1 deletion.
  1. +7 −1 railties/test/application/configuration_test.rb
View
8 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
Please sign in to comment.
Something went wrong with that request. Please try again.