Created
September 16, 2010 21:09
-
-
Save alovak/583174 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# создаем одного пользователя (user - название фабрики) | |
Given a user exists | |
# создаем 20 пользователeй | |
Given 20 users exists | |
# создаем пользователя с id равным "2" | |
Given a user exists with an id of "2" | |
# создаем 20 пользователей со статусом "active" | |
Given 20 users exists with a status of "active" | |
# используем этот шаг, если нужно задать значения | |
# нескольких атрибутов | |
Given the following user exists: | |
| id | status | | |
| 1 | active | | |
# так можно задать ассоциированный объект | |
# для "site" будет найден или создан | |
# объект "user" с id равным "2" | |
Given the following site exists: | |
| id | user | | |
| 1 | id: 1 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment