aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/application
diff options
context:
space:
mode:
authorArun Agrawal <arunagw@gmail.com>2012-02-25 09:37:58 +0530
committerArun Agrawal <arunagw@gmail.com>2012-02-25 09:40:50 +0530
commitd03076f206aaef86700521d7238426951f62fd7f (patch)
treeaaa66374ec903cdcc64d60d42e48694fed46add9 /railties/test/application
parent84cd58f2acd18988520224e621135f2aa35bf384 (diff)
downloadrails-d03076f206aaef86700521d7238426951f62fd7f.tar.gz
rails-d03076f206aaef86700521d7238426951f62fd7f.tar.bz2
rails-d03076f206aaef86700521d7238426951f62fd7f.zip
put and patch both are allowed for update
Diffstat (limited to 'railties/test/application')
-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