Sha256: 114cdd2b72d6ae0a1810388734c97ee78fffa4888b5006535ee36570d4267063
Contents?: true
Size: 771 Bytes
Versions: 4
Compression:
Stored size: 771 Bytes
Contents
require "application_system_test_case" class PasswordsTest < ApplicationSystemTestCase setup do @<%= singular_table_name %> = sign_in_as(<%= table_name %>(:lazaro_nixon)) end test "updating the password" do click_on "Change password" fill_in "Current password", with: "Secret1*3*5*" 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 has been changed" end def sign_in_as(<%= singular_table_name %>) visit sign_in_url fill_in :email, with: <%= singular_table_name %>.email fill_in :password, with: "Secret1*3*5*" click_on "Sign in" assert_current_path root_path return <%= singular_table_name %> end end
Version data entries
4 entries across 4 versions & 1 rubygems