Sha256: 8f1be6e7ebc8aa1f53a38ac5233aef63273f4c108a90ebcf71e84683cf2e6511

Contents?: true

Size: 890 Bytes

Versions: 24

Compression:

Stored size: 890 Bytes

Contents

after :users do
  first_user = User.friendly.find('first-user')
  second_user = User.friendly.find('second-user')
  fourth_user = User.friendly.find('fourth-user')
  unsubscribed_user = User.friendly.find('unsubscribed-user')

  first_group = FactoryGirl.create(
    :group,
    title: 'First Group',
    owner: first_user
  )
  fourth_user.add_role(:member, first_group)
  unsubscribed_user.add_role(:member, first_group)

  membered_group = FactoryGirl.create(
    :group,
    title: 'Membered Group',
    owner: second_user
  )
  first_user.add_role(:member, membered_group)
  unsubscribed_user.add_role(:member, membered_group)

  FactoryGirl.create(
    :group,
    title: 'Empty Group',
    owner: first_user
  )

  unsubscribed_group = FactoryGirl.create(
    :group,
    title: 'Unsubscribed Group',
    owner: second_user
  )
  first_user.add_role(:member, unsubscribed_group)
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
message_train-0.7.6 spec/dummy/db/seeds/groups.seeds.rb
message_train-0.7.5 spec/dummy/db/seeds/groups.seeds.rb
message_train-0.7.3 spec/dummy/db/seeds/groups.seeds.rb
message_train-0.7.2 spec/dummy/db/seeds/groups.seeds.rb
message_train-0.7.1 spec/dummy/db/seeds/groups.seeds.rb
message_train-0.6.17 spec/dummy/db/seeds/groups.seeds.rb
message_train-0.6.16 spec/dummy/db/seeds/groups.seeds.rb
message_train-0.6.15 spec/dummy/db/seeds/groups.seeds.rb
message_train-0.6.14 spec/dummy/db/seeds/groups.seeds.rb
message_train-0.6.13 spec/dummy/db/seeds/groups.seeds.rb
message_train-0.6.12 spec/dummy/db/seeds/groups.seeds.rb
message_train-0.6.11 spec/dummy/db/seeds/groups.seeds.rb
message_train-0.6.10 spec/dummy/db/seeds/groups.seeds.rb
message_train-0.6.9 spec/dummy/db/seeds/groups.seeds.rb
message_train-0.6.8 spec/dummy/db/seeds/groups.seeds.rb
message_train-0.6.7 spec/dummy/db/seeds/groups.seeds.rb
message_train-0.6.6 spec/dummy/db/seeds/groups.seeds.rb
message_train-0.6.5 spec/dummy/db/seeds/groups.seeds.rb
message_train-0.6.4 spec/dummy/db/seeds/groups.seeds.rb
message_train-0.6.3 spec/dummy/db/seeds/groups.seeds.rb