Guest User

Untitled

a guest
May 24th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. Feature: Logging out
  2. In order to be secure
  3. As an admin
  4. I want to be logged out
  5.  
  6. Background:
  7. Given there is a logged in "admin"
  8.  
  9. Scenario: Being logged out when going to the admin page
  10. When I go to the login path
  11. Then I should see :"user_session.after_destroy"
  12. And I am no longer logged in
  13.  
  14. Scenario: Logging out when pressing Log Out
  15. When I click :"logout"
  16. Then I should see :"user_session.after_destroy"
  17. And I am on the posts path
Add Comment
Please, Sign In to add comment