Permalink
Browse files

Remove unused ActionDispatch::RoutingVerbs

  • Loading branch information...
1 parent 81e5be0 commit fc118d0b41ecb6b7c900554822ffdcbf149d75b3 @lukaszx0 lukaszx0 committed Jul 16, 2013
Showing with 1 addition and 15 deletions.
  1. +1 −15 actionview/test/abstract_unit.rb
@@ -268,6 +268,7 @@ def assert_header(name, value)
end
end
+# Emulate AV railtie.
ActionController::Base.superclass.send(:include, ActionView::Layouts)
module ActionController
@@ -332,21 +333,6 @@ def stderr_logger
end
end
-module ActionDispatch
- module RoutingVerbs
- def get(uri_or_host, path = nil)
- host = uri_or_host.host unless path
- path ||= uri_or_host.path
-
- params = {'PATH_INFO' => path,
- 'REQUEST_METHOD' => 'GET',
- 'HTTP_HOST' => host}
-
- routes.call(params)[2].join
- end
- end
-end
-
module RoutingTestHelpers
def url_for(set, options, recall = nil)
set.send(:url_for, options.merge(:only_path => true, :_recall => recall))

0 comments on commit fc118d0

Please sign in to comment.