Sha256: 67e58925e5e381abaa848f9fda80df3479865f08484f9e79aa407065e24592c7

Contents?: true

Size: 507 Bytes

Versions: 9

Compression:

Stored size: 507 Bytes

Contents

# Read about factories at https://github.com/thoughtbot/factory_girl

FactoryGirl.define do
  factory :mailing, class: MailManager::Mailing do
    subject             {Faker::Company.bs.split(/\s+/).map(&:capitalize).join(' ')}
    from_email_address  {Faker::Internet.email}
    scheduled_at        {Time.now.utc}
    mailable_type       "MailManager::Mailable"
    mailable_id         {(MailManager::Mailable.first || FactoryGirl.create(:mailable)).id}
    include_images      {random_int(0,1)}
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
mail_manager-3.2.25.1 spec/test_app/spec/factories/mailings.rb
mail_manager-3.2.22.0 spec/test_app/spec/factories/mailings.rb
mail_manager-3.2.7 spec/test_app/spec/factories/mailings.rb
mail_manager-3.2.6 spec/test_app/spec/factories/mailings.rb
mail_manager-3.2.5 spec/test_app/spec/factories/mailings.rb
mail_manager-3.2.4 spec/test_app/spec/factories/mailings.rb
mail_manager-3.2.2 spec/test_app/spec/factories/mailings.rb
mail_manager-3.2.1 spec/test_app/spec/factories/mailings.rb
mail_manager-3.2.0 spec/test_app/spec/factories/mailings.rb