From 82514c2897a43ab58239af1fb24f8f0de2a0d989 Mon Sep 17 00:00:00 2001 From: Michael Koziarski Date: Fri, 9 Apr 2010 11:28:19 +1200 Subject: Add accessors for request and response so tests don't have to mess with internal ivars --- actionpack/lib/action_controller/test_case.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'actionpack/lib/action_controller') diff --git a/actionpack/lib/action_controller/test_case.rb b/actionpack/lib/action_controller/test_case.rb index 2d4cf2fafb..dfd8e75bcc 100644 --- a/actionpack/lib/action_controller/test_case.rb +++ b/actionpack/lib/action_controller/test_case.rb @@ -284,6 +284,8 @@ module ActionController include ActionDispatch::TestProcess include ActionController::TemplateAssertions + attr_reader :response, :request + # Executes a request simulating GET HTTP method and set/volley the response def get(action, parameters = nil, session = nil, flash = nil) process(action, parameters, session, flash, "GET") -- cgit v1.2.3