diff options
author | Gert Goet <gert@thinkcreate.nl> | 2014-09-25 17:50:16 +0200 |
---|---|---|
committer | Gert Goet <gert@thinkcreate.nl> | 2014-09-25 17:50:16 +0200 |
commit | 2d08fd250638a39fbc8509b4e1c3f87a5f9e36c6 (patch) | |
tree | 86235eaae656896745748ec3570ce8e27bde0aaa /actionview/test | |
parent | f620299b2784f7ce5f01a4e123525d04f97be4dd (diff) | |
download | rails-2d08fd250638a39fbc8509b4e1c3f87a5f9e36c6.tar.gz rails-2d08fd250638a39fbc8509b4e1c3f87a5f9e36c6.tar.bz2 rails-2d08fd250638a39fbc8509b4e1c3f87a5f9e36c6.zip |
Remove internal options from query string of paths
Fixes #17057
Diffstat (limited to 'actionview/test')
-rw-r--r-- | actionview/test/activerecord/polymorphic_routes_test.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/actionview/test/activerecord/polymorphic_routes_test.rb b/actionview/test/activerecord/polymorphic_routes_test.rb index 4e94304796..5842b775bb 100644 --- a/actionview/test/activerecord/polymorphic_routes_test.rb +++ b/actionview/test/activerecord/polymorphic_routes_test.rb @@ -282,6 +282,15 @@ class PolymorphicRoutesTest < ActionController::TestCase end end + def test_regression_path_helper_prefixed_with_new_and_edit + with_test_routes do + assert_equal "/projects/new", new_polymorphic_path(@project) + + @project.save + assert_equal "/projects/#{@project.id}/edit", edit_polymorphic_path(@project) + end + end + def test_url_helper_prefixed_with_edit with_test_routes do @project.save |