From f10b38bbc875bbf016862602b9383b95e59e352a Mon Sep 17 00:00:00 2001 From: Mohamed Wael Khobalatte Date: Fri, 19 Sep 2014 00:15:24 +0200 Subject: Ensure named path params are symbols (Fixes #16958) --- actionpack/test/dispatch/routing/route_set_test.rb | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'actionpack/test/dispatch/routing') diff --git a/actionpack/test/dispatch/routing/route_set_test.rb b/actionpack/test/dispatch/routing/route_set_test.rb index c465d56bde..87d44064ea 100644 --- a/actionpack/test/dispatch/routing/route_set_test.rb +++ b/actionpack/test/dispatch/routing/route_set_test.rb @@ -80,6 +80,14 @@ module ActionDispatch assert_equal '/foo/1/bar/2', url_helpers.foo_bar_path(2, foo_id: 1) end + test "stringified controller and action keys are properly symbolized" do + draw do + root 'foo#bar' + end + + assert_equal '/', url_helpers.root_path('controller' => 'foo', 'action' => 'bar') + end + private def draw(&block) @set.draw(&block) -- cgit v1.2.3