Advertisement
Guest User

Untitled

a guest
May 18th, 2016
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. require "spec_helper"
  2.  
  3. feature "Authentication" do
  4. before do
  5. Traver.create(user: { email: "walter@white.com", password: "walter" })
  6. end
  7.  
  8. scenario "User logs in successfully by entering email and password" do
  9. visit login_path
  10.  
  11. within("#login-form") do
  12. fill_in "email", with: "walter@white.com"
  13. fill_in "password", with: "walter"
  14.  
  15. click_button "Login"
  16. end
  17.  
  18. expect(page).to have_content "Successfully logged in."
  19. end
  20. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement