diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2018-09-24 14:49:26 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2018-09-24 15:39:15 -0700 |
commit | 4f96e739c215331562c09cd215536c35a85508fd (patch) | |
tree | 22ab11502954a40ce72f51efdfbc2f206a189a09 /actionview/test/template/form_helper | |
parent | 0a829f7db10263c5bf5f8b4ee04ea92a05ecdd39 (diff) | |
download | rails-4f96e739c215331562c09cd215536c35a85508fd.tar.gz rails-4f96e739c215331562c09cd215536c35a85508fd.tar.bz2 rails-4f96e739c215331562c09cd215536c35a85508fd.zip |
Remove deprecated catch-all route in the AV tests
This commit removes a deprecated catch-all route in the AV tests. It
defines and includes the necessary routes for each test such that we
don't need the catch-all anymore.
This also helps push us toward #33970
Diffstat (limited to 'actionview/test/template/form_helper')
-rw-r--r-- | actionview/test/template/form_helper/form_with_test.rb | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/actionview/test/template/form_helper/form_with_test.rb b/actionview/test/template/form_helper/form_with_test.rb index c30176349c..c807f81052 100644 --- a/actionview/test/template/form_helper/form_with_test.rb +++ b/actionview/test/template/form_helper/form_with_test.rb @@ -290,6 +290,7 @@ class FormWithActsLikeFormForTest < FormWithTest @post_delegator.title = "Hello World" @car = Car.new("#000FFF") + @controller.singleton_class.include Routes.url_helpers end Routes = ActionDispatch::Routing::RouteSet.new @@ -308,10 +309,6 @@ class FormWithActsLikeFormForTest < FormWithTest root to: "main#index" end - def _routes - Routes - end - include Routes.url_helpers def url_for(object) |