Sha256: 58d2cdcc2962f74abb755d7e9a5eb08c66b8e60f4fdd722b22b6aaf04c1d4f43

Contents?: true

Size: 517 Bytes

Versions: 1

Compression:

Stored size: 517 Bytes

Contents

Factory.define :activity do |a|
  a.contact { Factory(:friend).contact }
  a.activity_verb { ActivityVerb["post"] }
  a.relation_ids  { |b| Array(b.sender.relation_custom('friend')) }
end

Factory.define :like_activity, :parent => :activity do |a|
  a.association :parent, :factory => :activity
  a.contact { |b| Factory(:friend, :sender => b.parent.sender).receiver.contact_to!(b.parent.sender) }
  a.activity_verb { ActivityVerb["like"] }
  a.relation_ids { |b| Array(b.parent.contact.ties.first.relation.id) }
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
social_stream-base-0.6.0 spec/factories/activity.rb