From 2d08fd250638a39fbc8509b4e1c3f87a5f9e36c6 Mon Sep 17 00:00:00 2001 From: Gert Goet Date: Thu, 25 Sep 2014 17:50:16 +0200 Subject: Remove internal options from query string of paths Fixes #17057 --- actionview/test/activerecord/polymorphic_routes_test.rb | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'actionview') 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 -- cgit v1.2.3