Sha256: fdb918a92d132f84422dafc039c1525148bfa6b7e06a6ff46790a3aa92c58065

Contents?: true

Size: 820 Bytes

Versions: 6

Compression:

Stored size: 820 Bytes

Contents

require 'spec_helper'
require 'support/features/feature_helpers'

feature 'visitor signs in' do
  scenario 'with valid email and password' do
    user = create(:user)
    sign_in_with user.email, user.password
    expect_user_to_be_signed_in
  end

  scenario 'with valid mixed-case email and password' do
    user = create(:user, email: 'test.user@example.com')
    sign_in_with 'Test.USER@example.com', user.password
    expect_user_to_be_signed_in
  end

  scenario 'with invalid password' do
    user = create(:user)
    sign_in_with user.email, 'invalid password'
    expect_page_to_display_sign_in_error
    expect_user_to_be_signed_out
  end

  scenario 'with invalid email' do
    sign_in_with 'unknown@example.com', 'password'
    expect_page_to_display_sign_in_error
    expect_user_to_be_signed_out
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
authenticate-0.5.0 spec/features/sign_in_spec.rb
authenticate-0.4.0 spec/features/sign_in_spec.rb
authenticate-0.3.3 spec/features/sign_in_spec.rb
authenticate-0.3.2 spec/features/sign_in_spec.rb
authenticate-0.3.1 spec/features/sign_in_spec.rb
authenticate-0.3.0 spec/features/sign_in_spec.rb