Sha256: a9e7b6f16e73dc710ad3cee872631401415485f642dab33e80457c303a137232

Contents?: true

Size: 222 Bytes

Versions: 9

Compression:

Stored size: 222 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

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
social_stream-base-0.7.1 spec/factories/post.rb
social_stream-base-0.7.0 spec/factories/post.rb
social_stream-base-0.6.8 spec/factories/post.rb
social_stream-base-0.6.6 spec/factories/post.rb
social_stream-base-0.6.5 spec/factories/post.rb
social_stream-base-0.6.3 spec/factories/post.rb
social_stream-base-0.6.2 spec/factories/post.rb
social_stream-base-0.6.1 spec/factories/post.rb
social_stream-base-0.6.0 spec/factories/post.rb