Factory.define :user do |user|
user.name "My Name"
user.addresses {|addresses| [addresses.association(:address)]}
end
Showing posts with label has-many-association. Show all posts
Showing posts with label has-many-association. Show all posts
Thursday, July 30, 2009
Has many association in Factory Girl
Subscribe to:
Posts (Atom)