Displaying 1 result from an estimated 1 matches for "test_should_update_us".
Did you mean:
test_should_update_user
2006 Nov 04
0
Functional test issue for testing newbie
...@user.update_attributes(params[:user])
flash[:notice_good] = ''Your account details were successfully updated.''
redirect_to :action => ''index''
else
render :action => ''edit_details''
end
end
# account_controller_test.rb
def test_should_update_user
# login as valid user
post :login, :email => ''quentin@example.com'', :password => ''test''
assert session[:user]
get :edit_details
assert_response :success
post :edit_details, :first_name => ''Richard''
assert_equal ''...