Permalink
Browse files

restore elided TestProcess#assigns method

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3725 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent abeb77b commit 8368b5960b5128deed17fcf9d7cda5c70da9d972 @jamis jamis committed Mar 1, 2006
Showing with 7 additions and 6 deletions.
  1. +7 −6 actionpack/lib/action_controller/test_process.rb
View
13 actionpack/lib/action_controller/test_process.rb
@@ -325,12 +325,13 @@ def follow_redirect
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

0 comments on commit 8368b59

Please sign in to comment.