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-0.19.2 base/spec/factories/post.rb
social_stream-base-0.14.2 spec/factories/post.rb
social_stream-0.19.1 base/spec/factories/post.rb
social_stream-base-0.14.1 spec/factories/post.rb
vkhater-social_stream-0.16.3.3 base/spec/factories/post.rb
vkhater-social_stream-base-0.11.2 spec/factories/post.rb
social_stream-0.19.0 base/spec/factories/post.rb
social_stream-base-0.14.0 spec/factories/post.rb
social_stream-0.18.2 base/spec/factories/post.rb
social_stream-base-0.13.2 spec/factories/post.rb
social_stream-0.18.1 base/spec/factories/post.rb
social_stream-base-0.13.1 spec/factories/post.rb
social_stream-0.18.0 base/spec/factories/post.rb
social_stream-base-0.13.0 spec/factories/post.rb
social_stream-0.17.1 base/spec/factories/post.rb
social_stream-base-0.12.1 spec/factories/post.rb
social_stream-0.17.0 base/spec/factories/post.rb
social_stream-base-0.12.0 spec/factories/post.rb
social_stream-0.16.3 base/spec/factories/post.rb
social_stream-base-0.11.2 spec/factories/post.rb