Sha256: ab1abd3a744cda5c6b2f788736ea6d0cbb0186290348193b40aa9aee869a145f

Contents?: true

Size: 536 Bytes

Versions: 10

Compression:

Stored size: 536 Bytes

Contents

require "application_system_test_case"

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

  test "signing in" do
    visit admin_sign_in_url
    fill_in "Email", with: @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 @user
    click_on "Paweł Kuna"
    click_on "Logout"

    assert_selector "h1", text: "Login to your account"
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
administration-zero-1.0.4 lib/generators/admin/install/templates/test_unit/system/admin/sessions_test.rb
administration-zero-1.0.3 lib/generators/admin/install/templates/test_unit/system/admin/sessions_test.rb
administration-zero-1.0.2 lib/generators/admin/install/templates/test_unit/system/admin/sessions_test.rb
administration-zero-1.0.1 lib/generators/admin/install/templates/test_unit/system/admin/sessions_test.rb
administration-zero-1.0.0 lib/generators/admin/install/templates/test_unit/system/admin/sessions_test.rb
administration-zero-0.0.18 lib/generators/admin/install/templates/test_unit/system/admin/sessions_test.rb
administration-zero-0.0.17 lib/generators/admin/install/templates/test_unit/system/admin/sessions_test.rb
administration-zero-0.0.16 lib/generators/admin/install/templates/test_unit/system/admin/sessions_test.rb
administration-zero-0.0.15 lib/generators/admin/install/templates/test_unit/system/admin/sessions_test.rb
administration-zero-0.0.14 lib/generators/admin/install/templates/test_unit/system/admin/sessions_test.rb