Permalink
Browse files

Relative url generations are covered more thoroughly by url rewriter …

…tests
  • Loading branch information...
1 parent 673f73b commit 21be1dcffa98321fc999e39d11e902d717affad1 @josh josh committed Oct 11, 2009
Showing with 0 additions and 12 deletions.
  1. +0 −12 actionpack/test/controller/routing_test.rb
@@ -240,18 +240,6 @@ def test_basic_named_route
x.send(:home_url))
end
- def test_basic_named_route_with_relative_url_root
- rs.draw do |map|
- map.home '', :controller => 'content', :action => 'list'
- end
- x = setup_for_named_route
- ActionController::Base.relative_url_root = "/foo"
- assert_equal("http://test.host/foo/",
- x.send(:home_url))
- assert_equal "/foo/", x.send(:home_path)
- ActionController::Base.relative_url_root = nil
- end
-
def test_named_route_with_option
rs.draw do |map|
map.page 'page/:title', :controller => 'content', :action => 'show_page'

0 comments on commit 21be1dc

Please sign in to comment.