From 8368b5960b5128deed17fcf9d7cda5c70da9d972 Mon Sep 17 00:00:00 2001 From: Jamis Buck Date: Wed, 1 Mar 2006 19:40:37 +0000 Subject: [PATCH] restore elided TestProcess#assigns method git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3725 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- actionpack/lib/action_controller/test_process.rb | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/actionpack/lib/action_controller/test_process.rb b/actionpack/lib/action_controller/test_process.rb index 3d23710339..405396ddae 100644 --- a/actionpack/lib/action_controller/test_process.rb +++ b/actionpack/lib/action_controller/test_process.rb @@ -325,12 +325,13 @@ module ActionController #:nodoc: get(@response.redirected_to.delete(:action), @response.redirected_to.stringify_keys) end - def build_request_uri(action, parameters) - options = @controller.send(:rewrite_options, parameters) - options.update(:only_path => true, :action => action) - url = ActionController::UrlRewriter.new(@request, parameters) - @request.set_REQUEST_URI(url.rewrite(options)) - end + def assigns(key = nil) + if key.nil? + @response.template.assigns + else + @response.template.assigns[key.to_s] + end + end def session @response.session