diff options
author | Joshua Peek <josh@joshpeek.com> | 2009-10-17 16:39:16 -0500 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2009-10-17 17:35:20 -0500 |
commit | 20f0b33035aeb1ca8ca7bdfb98371b58c6fd10c1 (patch) | |
tree | 452c71494e47c9508246c50417bd04fc82fed29e | |
parent | d50413826f1892b5d1250f578b283d52b85b4f6c (diff) | |
download | rails-20f0b33035aeb1ca8ca7bdfb98371b58c6fd10c1.tar.gz rails-20f0b33035aeb1ca8ca7bdfb98371b58c6fd10c1.tar.bz2 rails-20f0b33035aeb1ca8ca7bdfb98371b58c6fd10c1.zip |
Drop support for routing :generate_all
-rw-r--r-- | actionpack/test/controller/routing_test.rb | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/actionpack/test/controller/routing_test.rb b/actionpack/test/controller/routing_test.rb index cd13f36681..345039f5b2 100644 --- a/actionpack/test/controller/routing_test.rb +++ b/actionpack/test/controller/routing_test.rb @@ -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| |