Fixed more issues in the README examples (thanks to github.com/kollektiv)

This commit is contained in:
Joe Ferris 2011-01-25 10:41:00 -05:00
parent 0a673827e8
commit 5e8f98138e
1 changed files with 4 additions and 2 deletions

View File

@ -180,8 +180,10 @@ generated using sequences. Sequences are defined by calling Factory.sequence,
and values in a sequence are generated by calling Factory.next:
# Defines a new sequence
FactoryGirl.sequence :email do |n|
"person#{n}@example.com"
FactoryGirl.define do
sequence :email do |n|
"person#{n}@example.com"
end
end
Factory.next :email