1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Drop support for routing :generate_all

This commit is contained in:
Joshua Peek 2009-10-17 16:39:16 -05:00
parent d50413826f
commit 20f0b33035

View file

@ -1407,20 +1407,6 @@ class RouteSetTest < ActiveSupport::TestCase
{:controller => 'post', :action => 'show', :project_id => '1'})
end
def test_generate_all
set.draw do |map|
map.connect 'show_post/:id', :controller => 'post', :action => 'show'
map.connect ':controller/:action/:id'
end
all = set.generate(
{:action => 'show', :id => 10, :generate_all => true},
{:controller => 'post', :action => 'show'}
)
assert_equal 2, all.length
assert_equal '/show_post/10', all.first
assert_equal '/post/show/10', all.last
end
def test_named_route_in_nested_resource
set.draw do |map|
map.resources :projects do |project|