Sha256: ff53f63236acb2c74f0ef64791d0d091a109906b5e526d1da44e9323edb6cb46

Contents?: true

Size: 473 Bytes

Versions: 109

Compression:

Stored size: 473 Bytes

Contents

# frozen_string_literal: true

# generado con pg_rails

FactoryBot.define do
  factory :email_log do
    email
    log_id { Faker::Lorem.sentence }
    event { %w[accepted delivered failed opened].sample }
    log_level { %w[info warn error].sample }
    severity { %w[permanent temporary].sample }
    timestamp { '' }
    message_id { Faker::Lorem.sentence }

    trait :email_existente do
      email { nil }
      email_id { Email.pluck(:id).sample }
    end
  end
end

Version data entries

109 entries across 109 versions & 1 rubygems

Version Path
pg_rails-7.0.8.pre.alpha.94 pg_engine/spec/factories/email_logs.rb
pg_rails-7.0.8.pre.alpha.93 pg_engine/spec/factories/email_logs.rb
pg_rails-7.0.8.pre.alpha.92 pg_engine/spec/factories/email_logs.rb
pg_rails-7.0.8.pre.alpha.91 pg_engine/spec/factories/email_logs.rb
pg_rails-7.0.8.pre.alpha.90 pg_engine/spec/factories/email_logs.rb
pg_rails-7.0.8.pre.alpha.89 pg_engine/spec/factories/email_logs.rb
pg_rails-7.0.8.pre.alpha.88 pg_engine/spec/factories/email_logs.rb
pg_rails-7.0.8.pre.alpha.87 pg_engine/spec/factories/email_logs.rb
pg_rails-7.0.8.pre.alpha.86 pg_engine/spec/factories/email_logs.rb