diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-07-06 10:45:14 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-07-06 10:45:14 +0000 |
commit | 212cc3845a1eab76e55c2ddfc93cb3fc77b9c92b (patch) | |
tree | 20c8b0027fc0f8de1558763b410aaafe9616f74d /actionpack/test/controller | |
parent | dc8989a42561e395b90b3113c2cd889e39087ec0 (diff) | |
download | rails-212cc3845a1eab76e55c2ddfc93cb3fc77b9c92b.tar.gz rails-212cc3845a1eab76e55c2ddfc93cb3fc77b9c92b.tar.bz2 rails-212cc3845a1eab76e55c2ddfc93cb3fc77b9c92b.zip |
Fixed routing snafu
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1736 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/test/controller')
-rw-r--r-- | actionpack/test/controller/routing_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/test/controller/routing_test.rb b/actionpack/test/controller/routing_test.rb index 16e9baf6e8..3b3cee6ae6 100644 --- a/actionpack/test/controller/routing_test.rb +++ b/actionpack/test/controller/routing_test.rb @@ -652,14 +652,14 @@ class RouteSetTests < Test::Unit::TestCase def test_basic_named_route rs.home '', :controller => 'content', :action => 'list' x = setup_for_named_route - assert_equal({:controller => 'content', :action => 'list'}, + assert_equal({:controller => '/content', :action => 'list'}, x.new.send(:home_url)) end def test_named_route_with_option rs.page 'page/:title', :controller => 'content', :action => 'show_page' x = setup_for_named_route - assert_equal({:controller => 'content', :action => 'show_page', :title => 'new stuff'}, + assert_equal({:controller => '/content', :action => 'show_page', :title => 'new stuff'}, x.new.send(:page_url, :title => 'new stuff')) end |