Sha256: 363e77149a82d10c28c1dab26b02446cda9a1419f8758b8d60d7b7062bb0da26
Contents?: true
Size: 554 Bytes
Versions: 3
Compression:
Stored size: 554 Bytes
Contents
require "application_system_test_case" class Admin::SessionsTest < ApplicationSystemTestCase setup do @admin_user = admin_users(:lazaro_nixon) end test "signing in" do visit admin_sign_in_url fill_in "Email", with: @admin_user.email fill_in "Password", with: "Secret1*3*5*" click_on "Sign in" assert_selector "h1", text: "Admin::Home#index" end test "signing out" do sign_in_admin_as @admin_user click_on "Paweł Kuna" click_on "Logout" assert_selector "h2", text: "Login to your account" end end
Version data entries
3 entries across 3 versions & 1 rubygems