Sha256: d666c849d72a3335186aff710c92c96eb2131287aaea94a4e31534a840645789

Contents?: true

Size: 228 Bytes

Versions: 93

Compression:

Stored size: 228 Bytes

Contents

Factory.define :comment do |p|
  p.sequence(:text)  { |n| "Comment #{ 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

93 entries across 93 versions & 2 rubygems

Version Path
social_stream-base-0.7.5 spec/factories/comment.rb
social_stream-base-0.7.4 spec/factories/comment.rb
social_stream-base-0.7.3 spec/factories/comment.rb
social_stream-base-0.7.2 spec/factories/comment.rb
social_stream-base-0.7.1 spec/factories/comment.rb
social_stream-base-0.7.0 spec/factories/comment.rb
social_stream-base-0.6.8 spec/factories/comment.rb
social_stream-base-0.6.6 spec/factories/comment.rb
social_stream-base-0.6.5 spec/factories/comment.rb
social_stream-base-0.6.3 spec/factories/comment.rb
social_stream-base-0.6.2 spec/factories/comment.rb
social_stream-base-0.6.1 spec/factories/comment.rb
social_stream-base-0.6.0 spec/factories/comment.rb