aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoshua Peek <josh@joshpeek.com>2009-10-10 20:34:32 -0500
committerJoshua Peek <josh@joshpeek.com>2009-10-10 21:30:51 -0500
commit8b46c50eacb8046f26083483e2fe1bbd0e854c8c (patch)
tree504342eaa9393368aae2c3574804a3220c295fbc
parente61bc8e29f3061e7356ff9fd2b16c8d901d1b5ce (diff)
downloadrails-8b46c50eacb8046f26083483e2fe1bbd0e854c8c.tar.gz
rails-8b46c50eacb8046f26083483e2fe1bbd0e854c8c.tar.bz2
rails-8b46c50eacb8046f26083483e2fe1bbd0e854c8c.zip
Kill mock routing assertion that tests router implementation
-rw-r--r--actionpack/test/controller/routing_test.rb13
1 files changed, 0 insertions, 13 deletions
diff --git a/actionpack/test/controller/routing_test.rb b/actionpack/test/controller/routing_test.rb
index f3eef58f46..7c88520bac 100644
--- a/actionpack/test/controller/routing_test.rb
+++ b/actionpack/test/controller/routing_test.rb
@@ -295,19 +295,6 @@ class LegacyRouteSetTests < Test::Unit::TestCase
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'