From feb20aa8d1db29f0d4941c08d1d028fb84e14572 Mon Sep 17 00:00:00 2001 From: Antonio Terceiro Date: Wed, 23 Feb 2011 11:17:05 -0300 Subject: [PATCH] assert_redirected_to requires all options in 2.3.5 --- test/functional/account_controller_test.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/functional/account_controller_test.rb b/test/functional/account_controller_test.rb index 0975655..7815515 100644 --- a/test/functional/account_controller_test.rb +++ b/test/functional/account_controller_test.rb @@ -597,11 +597,11 @@ class AccountControllerTest < ActionController::TestCase assert_tag :tag => 'input', :attributes => { :name => "profile_data[contact_phone]" } end - should 'redirect to login when unlogged user try logout' do + should 'redirect to login when unlogged user tries to logout' do logout assert_nothing_raised NoMethodError do get :logout - assert_redirected_to :action => 'index' + assert_redirected_to :action => 'index', :controller => 'home' end end @@ -609,7 +609,7 @@ class AccountControllerTest < ActionController::TestCase Person.any_instance.stubs(:required_fields).returns(['organization']) assert_difference User, :count do post :signup, :user => { :login => 'testuser', :password => '123456', :password_confirmation => '123456', :email => 'testuser@example.com' }, :profile_data => { :organization => 'example.com' } - assert_redirected_to :controller => 'profile_editor', :profile => 'testuser' + assert_redirected_to :controller => 'profile_editor', :profile => 'testuser', :action => 'index' end assert_equal 'example.com', Person['testuser'].organization end -- libgit2 0.21.2