Sha256: d20e5a994d7181503abd2f70bcf56c7b4b0ca26591ebb4c93878d8312b580d67
Contents?: true
Size: 390 Bytes
Versions: 49
Compression:
Stored size: 390 Bytes
Contents
Factory.define :post do |p| p.sequence(:text) { |n| "Post #{ n }" } p.author_id { Factory(:friend).receiver.id } p.owner_id { |q| Actor.find(q.author_id).received_ties.first.sender.id } p.user_author_id { |q| q.author_id } end Factory.define :public_post, :parent => :post do |p| p.owner_id { |q| q.author_id } p._relation_ids { |q| Array(q.author.relation_public.id) } end
Version data entries
49 entries across 49 versions & 4 rubygems