diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-06-27 14:32:19 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-06-27 14:32:19 +0000 |
commit | a7116b6534ee192fd3c64ce927bae424acca2a22 (patch) | |
tree | 90b9298fc1b9456a574fb2f7eaaaa3d8b5c9455a /actionpack/test/controller | |
parent | 5205e08e76ecb472784b7237fc8195c66689aa78 (diff) | |
download | rails-a7116b6534ee192fd3c64ce927bae424acca2a22.tar.gz rails-a7116b6534ee192fd3c64ce927bae424acca2a22.tar.bz2 rails-a7116b6534ee192fd3c64ce927bae424acca2a22.zip |
Make named routes work without hashes #1523 [Nicholas Seckar]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1541 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/test/controller')
-rw-r--r-- | actionpack/test/controller/routing_test.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/actionpack/test/controller/routing_test.rb b/actionpack/test/controller/routing_test.rb index 3687b6ac77..923ea7db7c 100644 --- a/actionpack/test/controller/routing_test.rb +++ b/actionpack/test/controller/routing_test.rb @@ -661,6 +661,12 @@ class RouteSetTests < Test::Unit::TestCase x.send :include, ::ActionController::Routing::NamedRoutes x end + + def test_named_route_without_hash + rs.draw do |map| + rs.normal ':controller/:action/:id' + end + end end end |