summaryrefslogtreecommitdiff
path: root/spec/factories/personal_access_tokens.rb
blob: 811eab7e15bdc298660ec61554b0e667ddb53ddb (plain)
1
2
3
4
5
6
7
8
9
10
FactoryGirl.define do
  factory :personal_access_token do
    user
    token { SecureRandom.hex(50) }
    name { FFaker::Product.brand }
    revoked false
    expires_at { 5.days.from_now }
    scopes ['api']
  end
end