Skip to content
This repository
Browse code

Drop support for routing :generate_all

  • Loading branch information...
commit 20f0b33035aeb1ca8ca7bdfb98371b58c6fd10c1 1 parent d504138
Joshua Peek josh authored

Showing 1 changed file with 0 additions and 14 deletions. Show diff stats Hide diff stats

  1. +0 14 actionpack/test/controller/routing_test.rb
14 actionpack/test/controller/routing_test.rb
@@ -1407,20 +1407,6 @@ def test_expiry_determination_should_consider_values_with_to_param
1407 1407 {:controller => 'post', :action => 'show', :project_id => '1'})
1408 1408 end
1409 1409
1410   - def test_generate_all
1411   - set.draw do |map|
1412   - map.connect 'show_post/:id', :controller => 'post', :action => 'show'
1413   - map.connect ':controller/:action/:id'
1414   - end
1415   - all = set.generate(
1416   - {:action => 'show', :id => 10, :generate_all => true},
1417   - {:controller => 'post', :action => 'show'}
1418   - )
1419   - assert_equal 2, all.length
1420   - assert_equal '/show_post/10', all.first
1421   - assert_equal '/post/show/10', all.last
1422   - end
1423   -
1424 1410 def test_named_route_in_nested_resource
1425 1411 set.draw do |map|
1426 1412 map.resources :projects do |project|

0 comments on commit 20f0b33

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