Sha256: dcad2ab95dfa843a92263f824d0a2168325ca80cb3b9228a5bf50a4b41548983

Contents?: true

Size: 375 Bytes

Versions: 1

Compression:

Stored size: 375 Bytes

Contents

require 'authenticate/user'

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

  factory :user do
    email
    encrypted_password 'password'

    trait :with_session_token do
      session_token 'this_is_a_big_fake_long_token'
    end

    trait :with_forgotten_password do
      password_reset_token Authenticate::Token.new
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
authenticate-0.2.0 spec/factories/users.rb