[Rails] Re: Using Factory Girl with has many relationship

2010-09-06 Thread Satsou Sa
Many thanks for your help. Very appreciated. Happy RoR3 developments! -- 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 rubyonrails-t...@googlegroups.com. To

[Rails] Re: Using Factory Girl with has many relationship

2010-09-03 Thread Tony Primerano
Try this Factory.define :article do |f| f.title "Hello, world" f.comments {|comments| [comments.association(::comment)]} end Factory.define :comment do |f| f.content "Awesome!" end On Sep 3, 6:07 am, Satsou Sa wrote: > Hello, > > I have this kind of relation: > >   class Arti