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