From bf191318afb62a66fe37bd2649ecabfc4c8744a6 Mon Sep 17 00:00:00 2001 From: Andrew White Date: Mon, 20 Jan 2014 16:34:22 +0000 Subject: Tidy up tests and CHANGELOG for #12598 --- actionpack/test/dispatch/routing_test.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'actionpack/test/dispatch/routing_test.rb') diff --git a/actionpack/test/dispatch/routing_test.rb b/actionpack/test/dispatch/routing_test.rb index 497c3e568c..ebea5a8792 100644 --- a/actionpack/test/dispatch/routing_test.rb +++ b/actionpack/test/dispatch/routing_test.rb @@ -2912,6 +2912,16 @@ class TestRoutingMapper < ActionDispatch::IntegrationTest assert @response.ok?, 'route with trailing slash and with QUERY_STRING should work' end + def test_route_with_dashes_in_path + draw do + get '/contact-us', to: 'pages#contact_us' + end + + get '/contact-us' + assert_equal 'pages#contact_us', @response.body + assert_equal '/contact-us', contact_us_path + end + def test_shorthand_route_with_dashes_in_path draw do get '/about-us/index' -- cgit v1.2.3