aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2012-02-24 21:49:53 -0800
committerJosé Valim <jose.valim@gmail.com>2012-02-24 21:49:53 -0800
commit97df6f38c9f5b99f3ec55d25185c8d8391886b1e (patch)
treeaaa66374ec903cdcc64d60d42e48694fed46add9
parent84cd58f2acd18988520224e621135f2aa35bf384 (diff)
parentd03076f206aaef86700521d7238426951f62fd7f (diff)
downloadrails-97df6f38c9f5b99f3ec55d25185c8d8391886b1e.tar.gz
rails-97df6f38c9f5b99f3ec55d25185c8d8391886b1e.tar.bz2
rails-97df6f38c9f5b99f3ec55d25185c8d8391886b1e.zip
Merge pull request #5161 from arunagw/put_patch_build_fix
build fixed -- put and patch both are allowed for update
-rw-r--r--railties/test/application/configuration_test.rb8
1 files changed, 7 insertions, 1 deletions
diff --git a/railties/test/application/configuration_test.rb b/railties/test/application/configuration_test.rb
index 56bd2b0b4b..c9310aff87 100644
--- a/railties/test/application/configuration_test.rb
+++ b/railties/test/application/configuration_test.rb
@@ -281,8 +281,14 @@ module ApplicationTests
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