diff options
author | Akihiko Odaki <akihiko.odaki.4i@stu.hosei.ac.jp> | 2017-07-27 22:16:07 +0900 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2017-07-27 15:16:07 +0200 |
commit | 4f0b638cda82810c83f89f23e83efefb60375514 (patch) | |
tree | 5da8fe32130a4fb6f87499987cc5aa2c8cdf09fc /spec/fabricators | |
parent | bb96ba13cf78c0bee1919c32e61bf0644c89a209 (diff) |
Introduce access token fabricators (#4401)
Diffstat (limited to 'spec/fabricators')
-rw-r--r-- | spec/fabricators/access_token_fabricator.rb | 2 | ||||
-rw-r--r-- | spec/fabricators/accessible_access_token_fabricator.rb | 4 |
2 files changed, 6 insertions, 0 deletions
diff --git a/spec/fabricators/access_token_fabricator.rb b/spec/fabricators/access_token_fabricator.rb new file mode 100644 index 000000000..1856a8eb3 --- /dev/null +++ b/spec/fabricators/access_token_fabricator.rb @@ -0,0 +1,2 @@ +Fabricator :access_token, from: 'Doorkeeper::AccessToken' do +end diff --git a/spec/fabricators/accessible_access_token_fabricator.rb b/spec/fabricators/accessible_access_token_fabricator.rb new file mode 100644 index 000000000..4b7e99b20 --- /dev/null +++ b/spec/fabricators/accessible_access_token_fabricator.rb @@ -0,0 +1,4 @@ +Fabricator :accessible_access_token, from: :access_token do + expires_in { nil } + revoked_at { nil } +end |