Sha256: bf166867d8938dd6ff957657e181b7ceae399b6453491f0f5ee0f3d202ca5522

Contents?: true

Size: 606 Bytes

Versions: 60

Compression:

Stored size: 606 Bytes

Contents

require "application_system_test_case"

class SessionsTest < ApplicationSystemTestCase
  setup do
    @user = users(:lazaro_nixon)
  end

  test "visiting the index" do
    sign_in_as @user

    click_on "Devices & Sessions"
    assert_selector "h1", text: "Sessions"
  end

  test "signing in" do
    visit sign_in_url
    fill_in "Email", with: @user.email
    fill_in "Password", with: "Secret1*3*5*"
    click_on "Sign in"

    assert_text "Signed in successfully"
  end

  test "signing out" do
    sign_in_as @user

    click_on "Log out"
    assert_text "That session has been logged out"
  end
end

Version data entries

60 entries across 60 versions & 1 rubygems

Version Path
authentication-zero-3.0.2 lib/generators/authentication/templates/test_unit/system/sessions_test.rb.tt
authentication-zero-3.0.1 lib/generators/authentication/templates/test_unit/system/sessions_test.rb.tt
authentication-zero-3.0.0 lib/generators/authentication/templates/test_unit/system/sessions_test.rb.tt
authentication-zero-3.0.0.alpha1 lib/generators/authentication/templates/test_unit/system/sessions_test.rb.tt
authentication-zero-2.16.36 lib/generators/authentication/templates/test_unit/system/sessions_test.rb.tt
authentication-zero-2.16.35 lib/generators/authentication/templates/test_unit/system/sessions_test.rb.tt
authentication-zero-2.16.34 lib/generators/authentication/templates/test_unit/system/sessions_test.rb.tt
authentication-zero-2.16.33 lib/generators/authentication/templates/test_unit/system/sessions_test.rb.tt
authentication-zero-2.16.32 lib/generators/authentication/templates/test_unit/system/sessions_test.rb.tt
authentication-zero-2.16.31 lib/generators/authentication/templates/test_unit/system/sessions_test.rb.tt
authentication-zero-2.16.30 lib/generators/authentication/templates/test_unit/system/sessions_test.rb.tt
authentication-zero-2.16.29 lib/generators/authentication/templates/test_unit/system/sessions_test.rb.tt
authentication-zero-2.16.28 lib/generators/authentication/templates/test_unit/system/sessions_test.rb.tt
authentication-zero-2.16.27 lib/generators/authentication/templates/test_unit/system/sessions_test.rb.tt
authentication-zero-2.16.26 lib/generators/authentication/templates/test_unit/system/sessions_test.rb.tt
authentication-zero-2.16.25 lib/generators/authentication/templates/test_unit/system/sessions_test.rb.tt
authentication-zero-2.16.24 lib/generators/authentication/templates/test_unit/system/sessions_test.rb.tt
authentication-zero-2.16.23 lib/generators/authentication/templates/test_unit/system/sessions_test.rb.tt
authentication-zero-2.16.22 lib/generators/authentication/templates/test_unit/system/sessions_test.rb.tt
authentication-zero-2.16.21 lib/generators/authentication/templates/test_unit/system/sessions_test.rb.tt