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.6.23 pg_engine/spec/factories/email_logs.rb
pg_rails-7.6.22 pg_engine/spec/factories/email_logs.rb
pg_rails-7.6.22.pre.3 pg_engine/spec/factories/email_logs.rb
pg_rails-7.6.22.pre.2 pg_engine/spec/factories/email_logs.rb
pg_rails-7.6.22.pre.1 pg_engine/spec/factories/email_logs.rb
pg_rails-7.6.21 pg_engine/spec/factories/email_logs.rb
pg_rails-7.6.21.pre.11 pg_engine/spec/factories/email_logs.rb
pg_rails-7.6.21.pre.10 pg_engine/spec/factories/email_logs.rb
pg_rails-7.6.21.pre.9 pg_engine/spec/factories/email_logs.rb
pg_rails-7.6.21.pre.8 pg_engine/spec/factories/email_logs.rb
pg_rails-7.6.21.pre.7 pg_engine/spec/factories/email_logs.rb
pg_rails-7.6.21.pre.6 pg_engine/spec/factories/email_logs.rb
pg_rails-7.6.21.pre.5 pg_engine/spec/factories/email_logs.rb
pg_rails-7.6.21.pre.4 pg_engine/spec/factories/email_logs.rb
pg_rails-7.6.21.pre.3 pg_engine/spec/factories/email_logs.rb
pg_rails-7.6.21.pre.2 pg_engine/spec/factories/email_logs.rb
pg_rails-7.6.21.pre.1 pg_engine/spec/factories/email_logs.rb
pg_rails-7.6.20 pg_engine/spec/factories/email_logs.rb
pg_rails-7.6.19 pg_engine/spec/factories/email_logs.rb
pg_rails-7.6.18 pg_engine/spec/factories/email_logs.rb