define routes for tests

This commit is contained in:
Aman Gupta
2014-01-15 01:14:25 -08:00
parent 39b441bde4
commit 94fe0794fd

View File

@@ -425,6 +425,8 @@ module ActionController #:nodoc:
end
def process(action, parameters = nil, session = nil, flash = nil, http_method = 'GET')
@routes ||= ActionController::Routing::Routes
# Sanity check for required instance variables so we can give an
# understandable error message.
%w(@routes @controller @request @response).each do |iv_name|