Sha256: 113acbb260318379f5a6b547506d357aef7a6a38d67e5daf8821ba9804dee055
Contents?: true
Size: 757 Bytes
Versions: 4
Compression:
Stored size: 757 Bytes
Contents
require "application_system_test_case" class Identity::PasswordResetsTest < ApplicationSystemTestCase setup do @user = users(:lazaro_nixon) @sid = @user.generate_token_for(:password_reset) end test "sending a password reset email" do visit sign_in_url click_on "Forgot your password?" fill_in "Email", with: @user.email click_on "Send password reset email" assert_text "Check your email for reset instructions" end test "updating password" do visit edit_identity_password_reset_url(sid: @sid) fill_in "New password", with: "Secret6*4*2*" fill_in "Confirm new password", with: "Secret6*4*2*" click_on "Save changes" assert_text "Your password was reset successfully. Please sign in" end end
Version data entries
4 entries across 4 versions & 1 rubygems