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

Version Path
social_stream-2.2.2 base/spec/factories/post.rb
social_stream-base-2.2.2 spec/factories/post.rb
social_stream-2.2.1 base/spec/factories/post.rb
social_stream-base-2.2.1 spec/factories/post.rb
social_stream-2.2.0 base/spec/factories/post.rb
social_stream-base-2.2.0 spec/factories/post.rb
social_stream-2.1.1 base/spec/factories/post.rb
social_stream-1.1.12 base/spec/factories/post.rb
social_stream-base-1.1.11 spec/factories/post.rb
social_stream-2.1.0 base/spec/factories/post.rb
social_stream-base-2.1.0 spec/factories/post.rb
social_stream-2.0.4 base/spec/factories/post.rb
social_stream-base-2.0.4 spec/factories/post.rb
social_stream-2.0.3 base/spec/factories/post.rb
social_stream-base-2.0.3 spec/factories/post.rb
social_stream-1.1.11 base/spec/factories/post.rb
social_stream-base-1.1.10 spec/factories/post.rb
social_stream-1.1.10 base/spec/factories/post.rb
social_stream-base-1.1.9 spec/factories/post.rb
social_stream-1.1.9 base/spec/factories/post.rb