Advertisement
Guest User

Untitled

a guest
Jun 18th, 2013
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.51 KB | None | 0 0
  1. Failures:
  2.  
  3. 1) User Management
  4. As the site owner
  5. I want to provide an user management
  6. so that I can protect functions and grant access based on roles
  7. Agents have access to their office page
  8. Failure/Error: expect(page).to have_content "Welcome to your office, #{@agent.name}"
  9. expected to find text "Welcome to your office, John Doe" in "× This site is protected. Please log in first. Log In Email Password"
  10. # ./spec/features/users_spec.rb:51:in `block (2 levels) in <top (required)>'
  11.  
  12. 2) User Management
  13. As the site owner
  14. I want to provide an user management
  15. so that I can protect functions and grant access based on roles
  16. User log in
  17. Failure/Error: expect(page).to have_content "Successfully logged in."
  18. expected to find text "Successfully logged in." in "× Account inactive. Please activate your account. Log In Email Password"
  19. # ./spec/features/users_spec.rb:32:in `block (2 levels) in <top (required)>'
  20.  
  21. 3) User Management
  22. As the site owner
  23. I want to provide an user management
  24. so that I can protect functions and grant access based on roles
  25. Users with no agent role dont have office access
  26. Failure/Error: expect(page).to have_content "Access denied. Insufficent rights."
  27. expected to find text "Access denied. Insufficent rights." in "× This site is protected. Please log in first. Log In Email Password"
  28. # ./spec/features/users_spec.rb:65:in `block (2 levels) in <top (required)>'
  29.  
  30. Finished in 2.75 seconds
  31. 8 examples, 3 failures
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement