From 94fe0794fdded2e525ded1c0f146986952db0017 Mon Sep 17 00:00:00 2001 From: Aman Gupta Date: Wed, 15 Jan 2014 01:14:25 -0800 Subject: [PATCH] define routes for tests --- actionpack/lib/action_controller/test_process.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/actionpack/lib/action_controller/test_process.rb b/actionpack/lib/action_controller/test_process.rb index 059c191baa..46b460b3df 100644 --- a/actionpack/lib/action_controller/test_process.rb +++ b/actionpack/lib/action_controller/test_process.rb @@ -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|