# Test setting a new password
post :reset_password, :token => token.token, :user => { :pass_crypt => "new_password", :pass_crypt_confirmation => "new_password" }
assert_response :redirect
- assert_redirected_to :action => :login
+ assert_redirected_to root_path
+ assert_equal users(:inactive_user).id, session[:user]
user = User.find(users(:inactive_user).id)
assert_equal "active", user.status
assert_equal true, user.email_valid
get :list, :page => 3
assert_response :success
assert_template :list
- assert_select "table#user_list tr", :count => 22
+ assert_select "table#user_list tr", :count => 23
end
def test_list_post_confirm