Sha256: 4532bc5428f2b6d96b4c70443cedaa09948b6d8538fb3edde288aeaf9852df2b
Contents?: true
Size: 561 Bytes
Versions: 79
Compression:
Stored size: 561 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(Relation::Public.instance.id) } end Factory.define :self_post, :parent => :post do |p| p.author_id { Factory(:user).actor_id } p.owner_id { |q| q.author_id } p.user_author_id { |q| q.author_id } end
Version data entries
79 entries across 79 versions & 2 rubygems