Sha256: c1043e4ea1141a1a85fa9af62abe299aae965538fe8fe2a4afe392ad64ce36db

Contents?: true

Size: 519 Bytes

Versions: 129

Compression:

Stored size: 519 Bytes

Contents

Factory.define :contact do |c|
  c.sender   { |s| Factory(:user).actor }
  c.receiver { |r| Factory(:user).actor }
  c.user_author { |d| d.sender }
end

Factory.define :self_contact, :parent => :contact do |c|
  c.receiver { |d| d.sender }
end

Factory.define :group_contact, :parent => :contact do |g|
  g.sender { |s| Factory(:group).actor }
  g.after_build { |h| h.user_author = h.sender.user_author }
end

Factory.define :g2g_contact, :parent => :group_contact do |g|
  g.receiver { |r| Factory(:group).actor }
end

Version data entries

129 entries across 129 versions & 2 rubygems

Version Path
social_stream-2.2.2 base/spec/factories/contact.rb
social_stream-base-2.2.2 spec/factories/contact.rb
social_stream-2.2.1 base/spec/factories/contact.rb
social_stream-base-2.2.1 spec/factories/contact.rb
social_stream-2.2.0 base/spec/factories/contact.rb
social_stream-base-2.2.0 spec/factories/contact.rb
social_stream-2.1.1 base/spec/factories/contact.rb
social_stream-1.1.12 base/spec/factories/contact.rb
social_stream-base-1.1.11 spec/factories/contact.rb
social_stream-2.1.0 base/spec/factories/contact.rb
social_stream-base-2.1.0 spec/factories/contact.rb
social_stream-2.0.4 base/spec/factories/contact.rb
social_stream-base-2.0.4 spec/factories/contact.rb
social_stream-2.0.3 base/spec/factories/contact.rb
social_stream-base-2.0.3 spec/factories/contact.rb
social_stream-1.1.11 base/spec/factories/contact.rb
social_stream-base-1.1.10 spec/factories/contact.rb
social_stream-1.1.10 base/spec/factories/contact.rb
social_stream-base-1.1.9 spec/factories/contact.rb
social_stream-1.1.9 base/spec/factories/contact.rb