diff options
author | Andrew White <andyw@pixeltrix.co.uk> | 2010-06-25 14:38:17 +0100 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2010-06-25 10:17:28 -0700 |
commit | 5f64bce10f2d4b7819e97586cbe3ab225e9e43e8 (patch) | |
tree | fc5c447b5c65200dc9cf504de39cb92b86a962a8 /actionpack | |
parent | 3d8200318aab7458e019e2e434901cccc2532979 (diff) | |
download | rails-5f64bce10f2d4b7819e97586cbe3ab225e9e43e8.tar.gz rails-5f64bce10f2d4b7819e97586cbe3ab225e9e43e8.tar.bz2 rails-5f64bce10f2d4b7819e97586cbe3ab225e9e43e8.zip |
Failing test for whether glob parameters accept regexps
[#4970 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
Diffstat (limited to 'actionpack')
-rw-r--r-- | actionpack/test/dispatch/routing_test.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/actionpack/test/dispatch/routing_test.rb b/actionpack/test/dispatch/routing_test.rb index 915c51a020..68e3dd6de3 100644 --- a/actionpack/test/dispatch/routing_test.rb +++ b/actionpack/test/dispatch/routing_test.rb @@ -317,6 +317,8 @@ class TestRoutingMapper < ActionDispatch::IntegrationTest post :preview end end + + match '/:locale/*file.:format', :to => 'files#show', :file => /path\/to\/existing\/file/ end end @@ -1448,6 +1450,13 @@ class TestRoutingMapper < ActionDispatch::IntegrationTest end end + def test_glob_parameter_accepts_regexp + with_test_routes do + get '/en/path/to/existing/file.html' + assert_equal 200, @response.status + end + end + private def with_test_routes yield |