Sha256: da5d35130778495f759969c2033d0fc77ff07857a7d1b0c8677d8c5c8b59a311
Contents?: true
Size: 626 Bytes
Versions: 6
Compression:
Stored size: 626 Bytes
Contents
require "application_system_test_case" class CancellationsTest < ApplicationSystemTestCase setup do @<%= singular_table_name %> = sign_in_as(<%= table_name %>(:lazaro_nixon)) end test "cancelling my account" do click_on "Cancel my account & delete my data" click_on "OK, close my account" assert_text "Bye! Your account has been successfully cancelled" end def sign_in_as(<%= singular_table_name %>) visit sign_in_url fill_in :email, with: <%= singular_table_name %>.email fill_in :password, with: "secret123" click_on "Sign in" return <%= singular_table_name %> end end
Version data entries
6 entries across 6 versions & 1 rubygems