diff options
author | Simon Vocella <voxsim@gmail.com> | 2016-12-27 19:26:57 +0300 |
---|---|---|
committer | Tiago Botelho <tiagonbotelho@hotmail.com> | 2017-03-01 01:15:39 +0300 |
commit | 81246e5649a8fb9e73369cbd117505a546d7e807 (patch) | |
tree | fa51d0a0d504f25bf1151db6f115e3c8a4ec8ad4 /spec/factories/personal_access_tokens.rb | |
parent | 4c4810b35b3b1729865640382b4c7e593f8b876d (diff) |
manage personal_access_tokens through api
Diffstat (limited to 'spec/factories/personal_access_tokens.rb')
-rw-r--r-- | spec/factories/personal_access_tokens.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/factories/personal_access_tokens.rb b/spec/factories/personal_access_tokens.rb index 811eab7e15b..3464d2d5d89 100644 --- a/spec/factories/personal_access_tokens.rb +++ b/spec/factories/personal_access_tokens.rb @@ -6,5 +6,13 @@ FactoryGirl.define do revoked false expires_at { 5.days.from_now } scopes ['api'] + + factory :revoked_personal_access_token do + revoked true + end + + factory :expired_personal_access_token do + expires_at { 1.day.ago } + end end end |