aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorŁukasz Strzałkowski <lukasz.strzalkowski@gmail.com>2013-07-16 16:07:38 +0200
committerŁukasz Strzałkowski <lukasz.strzalkowski@gmail.com>2013-08-25 11:39:10 +0200
commitfc118d0b41ecb6b7c900554822ffdcbf149d75b3 (patch)
tree336051a766ad6673544f07bc613501cb84ec3e46
parent81e5be0692205bfee2bb87fc5f3377602c72fb70 (diff)
downloadrails-fc118d0b41ecb6b7c900554822ffdcbf149d75b3.tar.gz
rails-fc118d0b41ecb6b7c900554822ffdcbf149d75b3.tar.bz2
rails-fc118d0b41ecb6b7c900554822ffdcbf149d75b3.zip
Remove unused ActionDispatch::RoutingVerbs
-rw-r--r--actionview/test/abstract_unit.rb16
1 files changed, 1 insertions, 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))