aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/dispatch/routing_test.rb
diff options
context:
space:
mode:
authorAndrew White <andyw@pixeltrix.co.uk>2014-01-20 16:34:22 +0000
committerAndrew White <andyw@pixeltrix.co.uk>2014-01-20 16:34:22 +0000
commitbf191318afb62a66fe37bd2649ecabfc4c8744a6 (patch)
tree377088ba63258dc65f77d130b5c3ebe342e2cae3 /actionpack/test/dispatch/routing_test.rb
parentf9f32e04ad57c37353a756673794a41026f65a34 (diff)
downloadrails-bf191318afb62a66fe37bd2649ecabfc4c8744a6.tar.gz
rails-bf191318afb62a66fe37bd2649ecabfc4c8744a6.tar.bz2
rails-bf191318afb62a66fe37bd2649ecabfc4c8744a6.zip
Tidy up tests and CHANGELOG for #12598
Diffstat (limited to 'actionpack/test/dispatch/routing_test.rb')
-rw-r--r--actionpack/test/dispatch/routing_test.rb10
1 files changed, 10 insertions, 0 deletions
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'