diff options
author | José Valim <jose.valim@gmail.com> | 2012-05-02 03:14:24 -0700 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2012-05-02 03:14:24 -0700 |
commit | 3b6a3531745f38bcb9b78aa2f82f3aa9e3530f8d (patch) | |
tree | 7f736851598f3411563c71b6521a5fb7dd583185 /actionpack/test/controller/routing_test.rb | |
parent | cf9f2842cc3392fc8c811c79e1acc72b54aad65a (diff) | |
parent | ce5c2b88fead992db51476c14cc2d7c323f5cd0c (diff) | |
download | rails-3b6a3531745f38bcb9b78aa2f82f3aa9e3530f8d.tar.gz rails-3b6a3531745f38bcb9b78aa2f82f3aa9e3530f8d.tar.bz2 rails-3b6a3531745f38bcb9b78aa2f82f3aa9e3530f8d.zip |
Merge pull request #5962 from bogdan/routes
Remove tests for undocumented private methods
Diffstat (limited to 'actionpack/test/controller/routing_test.rb')
-rw-r--r-- | actionpack/test/controller/routing_test.rb | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/actionpack/test/controller/routing_test.rb b/actionpack/test/controller/routing_test.rb index 9441b46d47..bcb4e6a766 100644 --- a/actionpack/test/controller/routing_test.rb +++ b/actionpack/test/controller/routing_test.rb @@ -891,23 +891,6 @@ class RouteSetTest < ActiveSupport::TestCase MockController.build(set.url_helpers).new end - def test_named_route_hash_access_method - controller = setup_named_route_test - - assert_equal( - { :controller => 'people', :action => 'show', :id => 5, :use_route => "show", :only_path => false }, - controller.send(:hash_for_show_url, :id => 5)) - - assert_equal( - { :controller => 'people', :action => 'index', :use_route => "index", :only_path => false }, - controller.send(:hash_for_index_url)) - - assert_equal( - { :controller => 'people', :action => 'show', :id => 5, :use_route => "show", :only_path => true }, - controller.send(:hash_for_show_path, :id => 5) - ) - end - def test_named_route_url_method controller = setup_named_route_test @@ -919,7 +902,6 @@ class RouteSetTest < ActiveSupport::TestCase assert_equal "http://test.host/admin/users", controller.send(:users_url) assert_equal '/admin/users', controller.send(:users_path) - assert_equal '/admin/users', url_for(set, controller.send(:hash_for_users_url), { :controller => 'users', :action => 'index' }) end def test_named_route_url_method_with_anchor |