Sha256: 514d22a7fc01ae08165bb15116917cfd7557d34ff78ceb82718dad88aa3e3ef4
Contents?: true
Size: 830 Bytes
Versions: 8
Compression:
Stored size: 830 Bytes
Contents
require "application_system_test_case" class SessionsTest < ApplicationSystemTestCase setup do @<%= singular_table_name %> = <%= table_name %>(:lazaro_nixon) end test "visiting the index" do sign_in_as @<%= singular_table_name %> click_on "Devices & Sessions" assert_selector "h1", text: "Sessions" end test "signing in" do visit sign_in_url fill_in "Email", with: @<%= singular_table_name %>.email fill_in "Password", with: "Secret123456" click_on "Sign in" assert_text "Signed in successfully" end def sign_in_as(<%= singular_table_name %>) visit sign_in_url fill_in :email, with: <%= singular_table_name %>.email fill_in :password, with: "Secret123456" click_on "Sign in" assert_current_path root_path return <%= singular_table_name %> end end
Version data entries
8 entries across 8 versions & 1 rubygems