Thursday, July 30, 2009

Has many association in Factory Girl


Factory.define :user do |user|
user.name "My Name"
user.addresses {|addresses| [addresses.association(:address)]}
end

No comments:

Blog Archive