Changeset 437

Show
Ignore:
Timestamp:
08/21/06 02:35:53 (2 years ago)
Author:
snowblink
Message:

Ticket #204: New password being set even if email fails.
Changed test to match login engine behaviour.
This may or may not be correct in both the user and login engine.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • user_engine/branches/rb_1.0/test/functional/user_controller_test.rb

    r154 r437  
    230230    assert_equal 0, ActionMailer::Base.deliveries.size 
    231231    assert_match /Password could not be changed/, flash[:warning] 
    232      
    233     # ensure we can log in with our original password 
    234     post :login, :user => { :login => "normal_user", :password => "atest" } 
     232    #get :logout 
     233     
     234    # ensure we can log in with new password 
     235    post :login, :user => { :login => "normal_user", :password => "changed_password" } 
    235236    assert_session_has :user 
    236237  end