Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Remove unused ActionDispatch::RoutingVerbs

  • Loading branch information...
commit fc118d0b41ecb6b7c900554822ffdcbf149d75b3 1 parent 81e5be0
@strzalek strzalek authored
Showing with 1 addition and 15 deletions.
  1. +1 −15 actionview/test/abstract_unit.rb
View
16 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))
Please sign in to comment.
Something went wrong with that request. Please try again.