diff options
author | Arun Agrawal <arunagw@gmail.com> | 2012-02-25 09:37:58 +0530 |
---|---|---|
committer | Arun Agrawal <arunagw@gmail.com> | 2012-02-25 09:40:50 +0530 |
commit | d03076f206aaef86700521d7238426951f62fd7f (patch) | |
tree | aaa66374ec903cdcc64d60d42e48694fed46add9 /railties | |
parent | 84cd58f2acd18988520224e621135f2aa35bf384 (diff) | |
download | rails-d03076f206aaef86700521d7238426951f62fd7f.tar.gz rails-d03076f206aaef86700521d7238426951f62fd7f.tar.bz2 rails-d03076f206aaef86700521d7238426951f62fd7f.zip |
put and patch both are allowed for update
Diffstat (limited to 'railties')
-rw-r--r-- | railties/test/application/configuration_test.rb | 8 |
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 |