mirror of
https://github.com/thoughtbot/factory_bot.git
synced 2022-11-09 11:43:51 -05:00
Edited GETTING_STARTED.md via GitHub
This commit is contained in:
parent
8bd8e0c851
commit
49a47fa5de
1 changed files with 7 additions and 0 deletions
|
@ -308,6 +308,13 @@ To set the attributes for each of the factories, you can pass in a hash as you n
|
||||||
|
|
||||||
twenty_year_olds = FactoryGirl.build_list(:user, 25, :date_of_birth => 20.years.ago)
|
twenty_year_olds = FactoryGirl.build_list(:user, 25, :date_of_birth => 20.years.ago)
|
||||||
|
|
||||||
|
Cucumber Integration
|
||||||
|
--------------------
|
||||||
|
|
||||||
|
factory_girl ships with step definitions that make calling factories from Cucumber easier. To use them:
|
||||||
|
|
||||||
|
require 'factory_girl/step_definitions'
|
||||||
|
|
||||||
Alternate Syntaxes
|
Alternate Syntaxes
|
||||||
------------------
|
------------------
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue