You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
416 B

  1. require "rails_helper"
  2. feature "Log in" do
  3. scenario "A valid email and password user is able to log in" do
  4. email = "test@example.com"
  5. password = "password"
  6. Fabricate(:user, email: email, password: password)
  7. visit new_user_session_path
  8. fill_in "user_email", with: email
  9. fill_in "user_password", with: password
  10. click_on "Log in"
  11. expect(page).to have_css "div.app-holder"
  12. end
  13. end