From 65f834ad45b2221fd442acc3c38fb2f750521a18 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sat, 12 Feb 2005 21:54:34 +0000 Subject: Stringify the parameters on follow_redirect git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@587 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- actionpack/test/controller/action_pack_assertions_test.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'actionpack/test') diff --git a/actionpack/test/controller/action_pack_assertions_test.rb b/actionpack/test/controller/action_pack_assertions_test.rb index 14ca462300..4c0382a32c 100644 --- a/actionpack/test/controller/action_pack_assertions_test.rb +++ b/actionpack/test/controller/action_pack_assertions_test.rb @@ -15,7 +15,7 @@ class ActionPackAssertionsController < ActionController::Base # a redirect to an internal location def redirect_internal() redirect_to "nothing"; end - def redirect_to_action() redirect_to :action => "flash_me"; end + def redirect_to_action() redirect_to :action => "flash_me", :id => 1, :params => { "panda" => "fun" }; end def redirect_to_controller() redirect_to :controller => "elsewhere", :action => "flash_me"; end @@ -352,6 +352,8 @@ class ActionPackAssertionsControllerTest < Test::Unit::TestCase assert_redirected_to :action => "flash_me" follow_redirect + assert_equal 1, @request.parameters["id"] + assert "Inconceivable!", @response.body end -- cgit v1.2.3