daze wrote in post #969217:
> If you check this out - it's in my factories.rb file:
> ------
> # Factories
> Factory.define :article do |t|
> t.association :section # 'belongs to a section'
> t.title {|x| "#{x.section.name}Article" + Factory.next(:count) }
> ...
> end
>
> (...)
>
> Factory.define :page do |t|
> t.title "Page#{Factory.next(:count)}"
Why are you using the same sequence in two different factories?
> t.styles "styles here"
> t.body Forgery::LoremIpsum.paragraphs(5)
> end
>
> # Sequences
> Factory.sequence :count do |n|
> n
> end
OK. Got it. Now what's the question?
Best,
--
Marnen Laibow-Koser
http://www.marnen.org
[email protected]
Sent from my iPhone
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.