Sha256: 3812006ddf0864371cc527e27e1b350415ba8a45511ebe04818078639d919183

Contents?: true

Size: 469 Bytes

Versions: 2

Compression:

Stored size: 469 Bytes

Contents

FactoryGirl.define do
  sequence(:email) { |n| "ios_user-#{n}@example.com" }
  factory :user do
    email
    password 'alcatraz'

    trait :full do
      reset_password_token { Devise.token_generator.generate(User, :reset_password_token) }
      reset_password_sent_at { Time.now }
      remember_created_at { Time.now }
    end
  end

  factory :oauth_user, class: User do
    provider 'facebook'
    oauth_token 'valid_token'
    uid { rand(1000..9999) }
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
devise-ios-rails-1.0.2 spec/dummy/spec/factories/users.rb
devise-ios-rails-1.0.1 spec/dummy/spec/factories/users.rb