diff options
author | Bogdan Gusiev <agresso@gmail.com> | 2012-05-02 10:41:34 +0300 |
---|---|---|
committer | Bogdan Gusiev <agresso@gmail.com> | 2012-05-02 10:41:34 +0300 |
commit | ce5c2b88fead992db51476c14cc2d7c323f5cd0c (patch) | |
tree | a145173b8ecc471b9e1f02327ae307ead442aef2 /actionpack | |
parent | c0a7038412c60cf48274267f75bc4376e733dc69 (diff) | |
download | rails-ce5c2b88fead992db51476c14cc2d7c323f5cd0c.tar.gz rails-ce5c2b88fead992db51476c14cc2d7c323f5cd0c.tar.bz2 rails-ce5c2b88fead992db51476c14cc2d7c323f5cd0c.zip |
ActionPack: remove tests for hash_for_* methods
Diffstat (limited to 'actionpack')
-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 |