mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Remove unused ActionDispatch::RoutingVerbs
This commit is contained in:
parent
81e5be0692
commit
fc118d0b41
1 changed files with 1 additions and 15 deletions
|
@ -268,6 +268,7 @@ class Rack::TestCase < ActionDispatch::IntegrationTest
|
|||
end
|
||||
end
|
||||
|
||||
# Emulate AV railtie.
|
||||
ActionController::Base.superclass.send(:include, ActionView::Layouts)
|
||||
|
||||
module ActionController
|
||||
|
@ -332,21 +333,6 @@ module ActionDispatch
|
|||
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))
|
||||
|
|
Loading…
Reference in a new issue