Skip to content

Instantly share code, notes, and snippets.

@yukas
Last active July 29, 2016 10:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yukas/b160bfbea649948b14e03b6d05d0fd3a to your computer and use it in GitHub Desktop.
Save yukas/b160bfbea649948b14e03b6d05d0fd3a to your computer and use it in GitHub Desktop.
require "spec_helper"
feature "Authentication" do
before do
Traver.create(user: { email: "walter@white.com", password: "walter" })
end
let(:login_page) { LoginPage.new }
scenario "User logs in successfully by entering email and password" do
login_page.visit
login_page.login_with(email: "walter@white.com", password: "password")
expect(login_page).to login_successfully
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment