Last active
July 29, 2016 10:52
-
-
Save yukas/b160bfbea649948b14e03b6d05d0fd3a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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