Sha256: c8edad9f8e7b899787cfed72f1a6c13429f4bcf734f108237777e8cb24bbf793
Contents?: true
Size: 413 Bytes
Versions: 84
Compression:
Stored size: 413 Bytes
Contents
Factory.define :post do |p| p.sequence(:text) { |n| "Post #{ n }" } p._contact_id { Factory(:friend).contact_id } p._relation_ids { |q| Array(Contact.find(q._contact_id).sender.relation_customs.sort.first.id) } end Factory.define :public_post, :parent => :post do |p| p._contact_id { Factory(:self_contact).id } p._relation_ids { |q| Array(Contact.find(q._contact_id).sender.relation_public.id) } end
Version data entries
84 entries across 84 versions & 2 rubygems