aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/application
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2012-02-24 16:25:41 -0800
committerXavier Noria <fxn@hashref.com>2012-02-24 16:25:41 -0800
commitb7a094536de6fdeb428aa79d21f1e2128169f45e (patch)
treeec0af33cb15a1c70a3f3e71b954782068a2040dd /railties/test/application
parent31ceb5e67b164eb98cddd5aef0bc87dad606a6bf (diff)
downloadrails-b7a094536de6fdeb428aa79d21f1e2128169f45e.tar.gz
rails-b7a094536de6fdeb428aa79d21f1e2128169f45e.tar.bz2
rails-b7a094536de6fdeb428aa79d21f1e2128169f45e.zip
uses PATCH for the forms of persisted records, and routes PATCH and PUT to the update action of resources
Diffstat (limited to 'railties/test/application')
-rw-r--r--railties/test/application/configuration_test.rb4
1 files changed, 0 insertions, 4 deletions
diff --git a/railties/test/application/configuration_test.rb b/railties/test/application/configuration_test.rb
index bf44a8b10b..56bd2b0b4b 100644
--- a/railties/test/application/configuration_test.rb
+++ b/railties/test/application/configuration_test.rb
@@ -268,7 +268,6 @@ module ApplicationTests
RUBY
add_to_config <<-RUBY
- config.default_method_for_update = :patch
routes.prepend do
resources :posts
end
@@ -276,9 +275,6 @@ module ApplicationTests
require "#{app_path}/config/environment"
- assert_equal ActionView::Base.default_method_for_update, :patch
- assert_equal ActionDispatch::Routing::Mapper.default_method_for_update, :patch
-
get "/posts/1"
assert_match /patch/, last_response.body