Sha256: 00c2b14ec1b51da1ec6a20e2d8fb4ec52e5453da1b95c9711cb1b27113d34e3b

Contents?: true

Size: 537 Bytes

Versions: 11

Compression:

Stored size: 537 Bytes

Contents

FactoryGirl.define do
  sequence :email do |n|
    "user#{n}@example.com"
  end

  factory :user do
    email
    password 'password'

    trait :without_email do
      email nil
    end

    trait :without_password do
      password nil
      encrypted_password nil
    end

    trait :with_session_token do
      session_token 'this_is_a_big_fake_long_token'
    end

    trait :with_password_reset_token_and_timestamp do
      password_reset_token Authenticate::Token.new
      password_reset_sent_at 10.seconds.ago
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
authenticate-0.7.2 spec/factories/users.rb
authenticate-0.7.1 spec/factories/users.rb
authenticate-0.7.0 spec/factories/users.rb
authenticate-0.6.1 spec/factories/users.rb
authenticate-0.6.0 spec/factories/users.rb
authenticate-0.5.0 spec/factories/users.rb
authenticate-0.4.0 spec/factories/users.rb
authenticate-0.3.3 spec/factories/users.rb
authenticate-0.3.2 spec/factories/users.rb
authenticate-0.3.1 spec/factories/users.rb
authenticate-0.3.0 spec/factories/users.rb