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

Version Path
social_stream-base-0.10.4 spec/factories/post.rb
social_stream-0.13.3 base/spec/factories/post.rb
social_stream-base-0.10.3 spec/factories/post.rb
social_stream-0.13.2 base/spec/factories/post.rb
social_stream-base-0.10.2 spec/factories/post.rb
social_stream-0.13.1 base/spec/factories/post.rb
social_stream-base-0.10.1 spec/factories/post.rb
social_stream-0.13.0 base/spec/factories/post.rb
social_stream-base-0.10.0 spec/factories/post.rb