Sha256: e4262db37e20208f8176ca4b608dc6f45acbe84f12b390fed5be7c55d88c42f1
Contents?: true
Size: 842 Bytes
Versions: 8
Compression:
Stored size: 842 Bytes
Contents
require "application_system_test_case" class PasswordResetsTest < ApplicationSystemTestCase setup do @<%= singular_table_name %> = <%= table_name %>(:lazaro_nixon) @sid = @<%= singular_table_name %>.signed_id(purpose: :password_reset, expires_in: 20.minutes) end test "sending a password reset email" do visit sign_in_url click_on "Forgot your password?" fill_in "Email", with: @<%= singular_table_name %>.email click_on "Send password reset email" assert_text "Check your email for reset instructions" end test "updating password" do visit edit_password_reset_url(token: @sid) fill_in "New password", with: "Secret654321" fill_in "Confirm new password", with: "Secret654321" click_on "Save changes" assert_text "Your password was reset successfully. Please sign in" end end
Version data entries
8 entries across 8 versions & 1 rubygems