Sha256: edadf3aea6c5a673750002298693e4deb5e471b22c823f89e0b1dc1323bf665a

Contents?: true

Size: 296 Bytes

Versions: 4

Compression:

Stored size: 296 Bytes

Contents

FactoryBot.define do
  sequence(:email) { "jon.doe+#{SecureRandom.hex(10)}@acme.com" }

  factory :user do
    email { Faker::Internet.email }
    password { Faker::Internet.password }
    confirmed_at { Time.current }

    trait :when_unconfirmed do
      confirmed_at { nil }
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
devise-doorkeeper-1.2.0.ci.137.1 spec/factories/users.rb
devise-doorkeeper-1.2.0 spec/factories/users.rb
devise-doorkeeper-1.2.0.ci.133.1 spec/factories/users.rb
devise-doorkeeper-1.1.2.ci.129.1 spec/factories/users.rb