Commit feb20aa8d1db29f0d4941c08d1d028fb84e14572

Authored by Antonio Terceiro
1 parent 20aa33ef

assert_redirected_to requires all options in 2.3.5

Showing 1 changed file with 3 additions and 3 deletions   Show diff stats
test/functional/account_controller_test.rb
... ... @@ -597,11 +597,11 @@ class AccountControllerTest < ActionController::TestCase
597 597 assert_tag :tag => 'input', :attributes => { :name => "profile_data[contact_phone]" }
598 598 end
599 599  
600   - should 'redirect to login when unlogged user try logout' do
  600 + should 'redirect to login when unlogged user tries to logout' do
601 601 logout
602 602 assert_nothing_raised NoMethodError do
603 603 get :logout
604   - assert_redirected_to :action => 'index'
  604 + assert_redirected_to :action => 'index', :controller => 'home'
605 605 end
606 606 end
607 607  
... ... @@ -609,7 +609,7 @@ class AccountControllerTest < ActionController::TestCase
609 609 Person.any_instance.stubs(:required_fields).returns(['organization'])
610 610 assert_difference User, :count do
611 611 post :signup, :user => { :login => 'testuser', :password => '123456', :password_confirmation => '123456', :email => 'testuser@example.com' }, :profile_data => { :organization => 'example.com' }
612   - assert_redirected_to :controller => 'profile_editor', :profile => 'testuser'
  612 + assert_redirected_to :controller => 'profile_editor', :profile => 'testuser', :action => 'index'
613 613 end
614 614 assert_equal 'example.com', Person['testuser'].organization
615 615 end
... ...