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.9.4 base/spec/factories/post.rb
social_stream-0.9.3 base/spec/factories/post.rb
social_stream-base-0.9.7 spec/factories/post.rb
social_stream-0.9.2 base/spec/factories/post.rb
social_stream-base-0.9.6 spec/factories/post.rb
social_stream-base-0.9.5 spec/factories/post.rb
social_stream-base-0.9.4 spec/factories/post.rb
social_stream-base-0.9.3 spec/factories/post.rb
social_stream-base-0.9.2 spec/factories/post.rb
social_stream-base-0.9.1 spec/factories/post.rb
social_stream-base-0.9.0 spec/factories/post.rb
social_stream-base-0.8.2 spec/factories/post.rb
social_stream-base-0.8.1 spec/factories/post.rb
social_stream-base-0.8.0 spec/factories/post.rb
social_stream-base-0.7.11 spec/factories/post.rb
social_stream-base-0.7.10 spec/factories/post.rb
social_stream-base-0.7.9 spec/factories/post.rb
social_stream-base-0.7.8 spec/factories/post.rb
social_stream-base-0.7.7 spec/factories/post.rb
social_stream-base-0.7.6 spec/factories/post.rb