Skip to content

Commit

Permalink
Merge pull request #21811 from akihiro17/remove-unused-test-code
Browse files Browse the repository at this point in the history
Remove TestRouter#add_routes
  • Loading branch information
rafaelfranca committed Sep 29, 2015
2 parents e229b43 + 388124e commit 1855312
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions actionpack/test/journey/router_test.rb
Expand Up @@ -497,17 +497,6 @@ def test_multi_verb_recognition

private

def add_routes router, paths, anchor = true
paths.each do |path|
if String === path
path = Path::Pattern.from_string path
else
path
end
add_route @app, path, {}, [], {}, {}
end
end

def rails_env env, klass = ActionDispatch::Request
klass.new(rack_env(env))
end
Expand Down

0 comments on commit 1855312

Please sign in to comment.