From d1529a71d120a8533f7e042b8e92698428c7a3a1 Mon Sep 17 00:00:00 2001 From: Nicholas Seckar Date: Wed, 22 Nov 2006 16:31:00 +0000 Subject: Update Routing to complain when :controller is not specified by a route. Closes #6669. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5607 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- actionpack/test/controller/url_rewriter_test.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'actionpack/test/controller/url_rewriter_test.rb') diff --git a/actionpack/test/controller/url_rewriter_test.rb b/actionpack/test/controller/url_rewriter_test.rb index 53cd278b6b..882add496f 100644 --- a/actionpack/test/controller/url_rewriter_test.rb +++ b/actionpack/test/controller/url_rewriter_test.rb @@ -78,7 +78,7 @@ class UrlWriterTests < Test::Unit::TestCase def test_named_route ActionController::Routing::Routes.draw do |map| - map.home '/home/sweet/home/:user' + map.home '/home/sweet/home/:user', :controller => 'home', :action => 'index' map.connect ':controller/:action/:id' end @@ -96,7 +96,7 @@ class UrlWriterTests < Test::Unit::TestCase def test_only_path ActionController::Routing::Routes.draw do |map| - map.home '/home/sweet/home/:user' + map.home '/home/sweet/home/:user', :controller => 'home', :action => 'index' map.connect ':controller/:action/:id' end -- cgit v1.2.3