diff options
author | Jean Boussier <jean.boussier@gmail.com> | 2015-07-07 13:47:16 -0400 |
---|---|---|
committer | Jean Boussier <jean.boussier@gmail.com> | 2015-12-15 13:16:54 +0100 |
commit | 4752e7d83794ecf23c6d0367f0bcad8eee33da59 (patch) | |
tree | ff8f521583023efd23f62a7e584bd69660bd9c05 /actionview/test | |
parent | 2dd64a7bbb0cb7b65976cb0516d0f338b099a715 (diff) | |
download | rails-4752e7d83794ecf23c6d0367f0bcad8eee33da59.tar.gz rails-4752e7d83794ecf23c6d0367f0bcad8eee33da59.tar.bz2 rails-4752e7d83794ecf23c6d0367f0bcad8eee33da59.zip |
Prevent ActionController::Parameters from being passed to url_for directly
Diffstat (limited to 'actionview/test')
-rw-r--r-- | actionview/test/template/url_helper_test.rb | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/actionview/test/template/url_helper_test.rb b/actionview/test/template/url_helper_test.rb index 62fa75bc63..784a48ed8d 100644 --- a/actionview/test/template/url_helper_test.rb +++ b/actionview/test/template/url_helper_test.rb @@ -636,10 +636,6 @@ class UrlHelperControllerTest < ActionController::TestCase render inline: "<%= url_for controller: 'url_helper_controller_test/url_helper', action: 'show_url_for' %>" end - def show_overridden_url_for - render inline: "<%= url_for params.merge(controller: 'url_helper_controller_test/url_helper', action: 'show_url_for') %>" - end - def show_named_route render inline: "<%= show_named_route_#{params[:kind]} %>" end @@ -673,11 +669,6 @@ class UrlHelperControllerTest < ActionController::TestCase assert_equal '/url_helper_controller_test/url_helper/show_url_for', @response.body end - def test_overridden_url_for_shows_only_path - get :show_overridden_url_for - assert_equal '/url_helper_controller_test/url_helper/show_url_for', @response.body - end - def test_named_route_url_shows_host_and_path get :show_named_route, params: { kind: 'url' } assert_equal 'http://test.host/url_helper_controller_test/url_helper/show_named_route', |