Skip to content
Browse files

Kill mock routing assertion that tests router implementation

  • Loading branch information...
1 parent e61bc8e commit 8b46c50eacb8046f26083483e2fe1bbd0e854c8c @josh josh committed
Showing with 0 additions and 13 deletions.
  1. +0 −13 actionpack/test/controller/routing_test.rb
View
13 actionpack/test/controller/routing_test.rb
@@ -295,19 +295,6 @@ def test_named_route_with_nested_controller
x.send(:users_url))
end
- def test_optimised_named_route_call_never_uses_url_for
- rs.draw do |map|
- map.users 'admin/user', :controller => '/admin/user', :action => 'index'
- map.user 'admin/user/:id', :controller=>'/admin/user', :action=>'show'
- end
- x = setup_for_named_route
- x.expects(:url_for).never
- x.send(:users_url)
- x.send(:users_path)
- x.send(:user_url, 2, :foo=>"bar")
- x.send(:user_path, 3, :bar=>"foo")
- end
-
def test_optimised_named_route_with_host
rs.draw do |map|
map.pages 'pages', :controller => 'content', :action => 'show_page', :host => 'foo.com'

0 comments on commit 8b46c50

Please sign in to comment.
Something went wrong with that request. Please try again.