Sha256: daea5e35bdfc5d29fe4c52950b8299f7abe74bd685511844d8c9a72d209125ef

Contents?: true

Size: 852 Bytes

Versions: 109

Compression:

Stored size: 852 Bytes

Contents

# frozen_string_literal: true

# generado con pg_rails

FactoryBot.define do
  factory :email do
    # accepted_at { "2024-05-06 16:41:06" }
    # delivered_at { "2024-05-06 16:41:06" }
    # opened_at { "2024-05-06 16:41:06" }
    from_address { Faker::Internet.email }
    from_name { Faker::Name.name }
    reply_to { Faker::Internet.email }
    to { Faker::Internet.email }
    subject { Faker::Lorem.sentence }
    body_input { Faker::Lorem.sentence }
    status { Email.status.values.sample }
    # tags { Faker::Lorem.sentence }
    # associated
    # message_id { Faker::Lorem.sentence }
    # mailer { Faker::Lorem.sentence }
    # status_detail { Faker::Lorem.sentence }
    # status { rand(1..9999) }

    # trait :associated_existente do
    #   associated { nil }
    #   associated_id { Associated.pluck(:id).sample }
    # end
  end
end

Version data entries

109 entries across 109 versions & 1 rubygems

Version Path
pg_rails-7.6.23 pg_engine/spec/factories/emails.rb
pg_rails-7.6.22 pg_engine/spec/factories/emails.rb
pg_rails-7.6.22.pre.3 pg_engine/spec/factories/emails.rb
pg_rails-7.6.22.pre.2 pg_engine/spec/factories/emails.rb
pg_rails-7.6.22.pre.1 pg_engine/spec/factories/emails.rb
pg_rails-7.6.21 pg_engine/spec/factories/emails.rb
pg_rails-7.6.21.pre.11 pg_engine/spec/factories/emails.rb
pg_rails-7.6.21.pre.10 pg_engine/spec/factories/emails.rb
pg_rails-7.6.21.pre.9 pg_engine/spec/factories/emails.rb
pg_rails-7.6.21.pre.8 pg_engine/spec/factories/emails.rb
pg_rails-7.6.21.pre.7 pg_engine/spec/factories/emails.rb
pg_rails-7.6.21.pre.6 pg_engine/spec/factories/emails.rb
pg_rails-7.6.21.pre.5 pg_engine/spec/factories/emails.rb
pg_rails-7.6.21.pre.4 pg_engine/spec/factories/emails.rb
pg_rails-7.6.21.pre.3 pg_engine/spec/factories/emails.rb
pg_rails-7.6.21.pre.2 pg_engine/spec/factories/emails.rb
pg_rails-7.6.21.pre.1 pg_engine/spec/factories/emails.rb
pg_rails-7.6.20 pg_engine/spec/factories/emails.rb
pg_rails-7.6.19 pg_engine/spec/factories/emails.rb
pg_rails-7.6.18 pg_engine/spec/factories/emails.rb