Sha256: 22e6f396a06bb60e4bd07bd73ba4695e2e7693642f6c2023737599bc54ee35af

Contents?: true

Size: 384 Bytes

Versions: 24

Compression:

Stored size: 384 Bytes

Contents

FactoryBot.define do
  factory :user do
    name      { Faker::FunnyName.two_word_name }
    email     { Faker::Internet.unique.email }
    password  { Faker::Internet.password }

    trait :confirmed do
      confirmed_at { Time.now }
    end

    trait :locked do
      locked_at { Time.now }
    end

    trait :auth_unavailable do
      auth_available { false }
    end
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
graphql_devise-0.4.0 spec/factories/users.rb
graphql_devise-0.3.0 spec/factories/users.rb
graphql_devise-0.2.0 spec/factories/users.rb
graphql_devise-0.1.1 spec/factories/users.rb