Sha256: 82ea957063bd54d8b274750e1d29b4270f40134b5ef442d8107c78b91804662a

Contents?: true

Size: 702 Bytes

Versions: 9

Compression:

Stored size: 702 Bytes

Contents

require 'rails_helper'

feature 'user signs in', %Q{
  As a signed up user
  I want to sign in
  So that I can regain access to my account
} do
  scenario 'specify valid credentials' do
    user = FactoryGirl.create(:user)

    visit new_user_session_path

    fill_in 'Email', with: user.email
    fill_in 'Password', with: user.password

    click_button 'Log in'

    expect(page).to have_content('Signed in successfully')
    expect(page).to have_content('Sign Out')
  end

  scenario 'specify invalid credentials' do
    visit new_user_session_path

    click_button 'Log in'
    expect(page).to have_content('Invalid email or password')
    expect(page).to_not have_content('Sign Out')
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
make_it_so-0.1.1 templates/rails/spec/features/user_signs_in_spec.rb
make_it_so-0.1.0 templates/rails/spec/features/user_signs_in_spec.rb
make_it_so-0.0.9 templates/rails/spec/features/user_signs_in_spec.rb
make_it_so-0.0.7 templates/rails/spec/features/user_signs_in_spec.rb
make_it_so-0.0.6 templates/rails/spec/features/user_signs_in_spec.rb
make_it_so-0.0.5 templates/rails/spec/features/user_signs_in_spec.rb
make_it_so-0.0.4 templates/rails/spec/features/user_signs_in_spec.rb
make_it_so-0.0.3 templates/rails/spec/features/user_signs_in_spec.rb
make_it_so-0.0.2 templates/rails/spec/features/user_signs_in_spec.rb