Sha256: 15cec7705225d3103c92aea8d88f0adffe203c05921ef50ec1f67f9da60f9cea

Contents?: true

Size: 485 Bytes

Versions: 9

Compression:

Stored size: 485 Bytes

Contents

FactoryGirl.define do
  factory :mailable, class: MailManager::Mailable do
    name        {Faker::Company.bs.split(/\s+/).map(&:capitalize).join(" ")}
    email_html  {|a| %Q|<html><head><title>#{a.name}</title></head><body><h1>#{a.name}</h1><p><img src="file://#{MailManager::PLUGIN_ROOT}/app/assets/images/mail_manager/iReach_logo.gif"/><br/>#{Faker::Lorem.paragraphs.join("</p><p>")}</p></body></html>|}
    email_text  {|a| generate_plain_text_from_html(a.email_html)}
  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/mailable.rb
mail_manager-3.2.22.0 spec/test_app/spec/factories/mailable.rb
mail_manager-3.2.7 spec/test_app/spec/factories/mailable.rb
mail_manager-3.2.6 spec/test_app/spec/factories/mailable.rb
mail_manager-3.2.5 spec/test_app/spec/factories/mailable.rb
mail_manager-3.2.4 spec/test_app/spec/factories/mailable.rb
mail_manager-3.2.2 spec/test_app/spec/factories/mailable.rb
mail_manager-3.2.1 spec/test_app/spec/factories/mailable.rb
mail_manager-3.2.0 spec/test_app/spec/factories/mailable.rb