Skip to content
Browse files

Merge pull request #5962 from bogdan/routes

Remove tests for undocumented private methods
  • Loading branch information...
2 parents cf9f284 + ce5c2b8 commit 3b6a3531745f38bcb9b78aa2f82f3aa9e3530f8d @josevalim josevalim committed
Showing with 0 additions and 18 deletions.
  1. +0 −18 actionpack/test/controller/routing_test.rb
View
18 actionpack/test/controller/routing_test.rb
@@ -891,23 +891,6 @@ def setup_named_route_test
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 @@ def test_named_route_url_method
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

0 comments on commit 3b6a353

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