Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require "spec_helper"
- feature "Authentication" do
- before do
- Traver.create(user: { email: "walter@white.com", password: "walter" })
- end
- scenario "User logs in successfully by entering email and password" do
- visit login_path
- within("#login-form") do
- fill_in "email", with: "walter@white.com"
- fill_in "password", with: "walter"
- click_button "Login"
- end
- expect(page).to have_content "Successfully logged in."
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement