Sha256: c8edad9f8e7b899787cfed72f1a6c13429f4bcf734f108237777e8cb24bbf793

Contents?: true

Size: 413 Bytes

Versions: 84

Compression:

Stored size: 413 Bytes

Contents

Factory.define :post do |p|
  p.sequence(:text)  { |n| "Post #{ n }" }
  p._contact_id { Factory(:friend).contact_id }
  p._relation_ids { |q| Array(Contact.find(q._contact_id).sender.relation_customs.sort.first.id) }
end

Factory.define :public_post, :parent => :post do |p|
  p._contact_id { Factory(:self_contact).id }
  p._relation_ids { |q| Array(Contact.find(q._contact_id).sender.relation_public.id) }
end

Version data entries

84 entries across 84 versions & 2 rubygems

Version Path
social_stream-0.12.14 base/spec/factories/post.rb
social_stream-base-0.9.36 spec/factories/post.rb
social_stream-0.12.13 base/spec/factories/post.rb
social_stream-base-0.9.35 spec/factories/post.rb
social_stream-0.12.12 base/spec/factories/post.rb
social_stream-base-0.9.34 spec/factories/post.rb
social_stream-0.12.11 base/spec/factories/post.rb
social_stream-base-0.9.33 spec/factories/post.rb
social_stream-0.12.10 base/spec/factories/post.rb
social_stream-base-0.9.32 spec/factories/post.rb
social_stream-0.12.9 base/spec/factories/post.rb
social_stream-base-0.9.31 spec/factories/post.rb
social_stream-0.12.8 base/spec/factories/post.rb
social_stream-base-0.9.30 spec/factories/post.rb
social_stream-0.12.7 base/spec/factories/post.rb
social_stream-base-0.9.29 spec/factories/post.rb
social_stream-0.12.6 base/spec/factories/post.rb
social_stream-0.12.5 base/spec/factories/post.rb
social_stream-base-0.9.28 spec/factories/post.rb
social_stream-0.12.4 base/spec/factories/post.rb