1
0
Fork 0
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:
Gabe Berke-Williams 2011-07-28 10:57:07 -03:00
parent 8bd8e0c851
commit 49a47fa5de

View file

@ -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
------------------ ------------------