Merge pull request #21106 from amitsuroliya/fix_routing_test

Remove duplicity in tests
This commit is contained in:
Andrew White 2015-08-21 11:25:38 +01:00
commit 95cb2e3a8a
1 changed files with 0 additions and 6 deletions

View File

@ -327,12 +327,6 @@ class LegacyRouteSetTests < ActiveSupport::TestCase
assert_equal '/stuff', controller.url_for({ :controller => '/stuff', :only_path => true })
end
def test_ignores_leading_slash
rs.clear!
rs.draw { get '/:controller(/:action(/:id))'}
test_default_setup
end
def test_route_with_colon_first
rs.draw do
get '/:controller/:action/:id', action: 'index', id: nil