From a7116b6534ee192fd3c64ce927bae424acca2a22 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Mon, 27 Jun 2005 14:32:19 +0000 Subject: 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 --- actionpack/test/controller/routing_test.rb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'actionpack/test') 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 -- cgit v1.2.3