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