Guest User

Untitled

a guest
Dec 8th, 2017
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. ##Account.feature
  2. Feature: Authentication
  3. In order to validate users
  4. I want to use my account on the website.
  5. Background:
  6. Given the following zombie records
  7. | name | email | password |
  8. | Jakub Ráček | jakub@hotmail.com | jakub |
  9. | Denis Homola | denis@hotmail.com | denis |
  10.  
  11. Scenario: i should be able to login with valid credentials
  12. Given I am on signin page
  13. When I fill in "Email" with "jakub@hotmail.com"
  14. And I fill in "Password" with "jakub"
  15. And I press "Sign in"
  16. Then I should see "Signed in successfully"
  17.  
  18. ##common_steps.rb
  19. Given /^the following (.+) records$/ do |factory, table|
  20. table.hashes.each do |hash|
  21. Factory(factory, hash)
  22. end
  23. end
  24. ## Error
  25. No such factory: zombie (ArgumentError)
Add Comment
Please, Sign In to add comment