From fc118d0b41ecb6b7c900554822ffdcbf149d75b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Strza=C5=82kowski?= Date: Tue, 16 Jul 2013 16:07:38 +0200 Subject: Remove unused ActionDispatch::RoutingVerbs --- actionview/test/abstract_unit.rb | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/actionview/test/abstract_unit.rb b/actionview/test/abstract_unit.rb index 40642bf705..149a253818 100644 --- a/actionview/test/abstract_unit.rb +++ b/actionview/test/abstract_unit.rb @@ -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)) -- cgit v1.2.3