Fixed more issues in the README examples (thanks to github.com/kollektiv)
This commit is contained in:
parent
0a673827e8
commit
5e8f98138e
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue