Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ##Account.feature
- Feature: Authentication
- In order to validate users
- I want to use my account on the website.
- Background:
- Given the following zombie records
- | name | email | password |
- | Jakub Ráček | jakub@hotmail.com | jakub |
- | Denis Homola | denis@hotmail.com | denis |
- Scenario: i should be able to login with valid credentials
- Given I am on signin page
- When I fill in "Email" with "jakub@hotmail.com"
- And I fill in "Password" with "jakub"
- And I press "Sign in"
- Then I should see "Signed in successfully"
- ##common_steps.rb
- Given /^the following (.+) records$/ do |factory, table|
- table.hashes.each do |hash|
- Factory(factory, hash)
- end
- end
- ## Error
- No such factory: zombie (ArgumentError)
Add Comment
Please, Sign In to add comment