about summary refs log tree commit diff
path: root/spec/features/log_in_spec.rb
blob: f9c222b60ecab162325202ae9835039dbe22ce78 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
require "rails_helper"

feature "Log in" do
  scenario "A valid email and password user is able to log in" do
    email = "test@example.com"
    password = "password"
    Fabricate(:user, email: email, password: password)

    visit new_user_session_path
    fill_in "user_email", with: email
    fill_in "user_password", with: password
    click_on "Log in"

    expect(page).to have_css "div.app-holder"
  end
end