Sha256: 12ab6d566faab158717b1880f3193c7e456f191f424b1cb99c59867f397e11d4

Contents?: true

Size: 380 Bytes

Versions: 24

Compression:

Stored size: 380 Bytes

Contents

after :users, :groups do
  first_user = User.friendly.find('first-user')

  # Create some conversations that first user has received
  FactoryGirl.create_list(
    :message_from_random_sender,
    10,
    recipients_to_save: { 'users' => first_user.slug }
  )

  # Create some conversations that first user has sent
  FactoryGirl.create_list(:message, 10, sender: first_user)
end

Version data entries

24 entries across 24 versions & 1 rubygems

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