2019-04-29 20:27:42 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2020-10-09 09:52:48 -04:00
|
|
|
Fabricator(:user_api_key) do
|
|
|
|
user
|
|
|
|
client_id { SecureRandom.hex }
|
|
|
|
application_name 'some app'
|
|
|
|
end
|
|
|
|
|
2020-09-29 05:57:48 -04:00
|
|
|
Fabricator(:user_api_key_scope)
|
|
|
|
|
2016-09-02 02:57:41 -04:00
|
|
|
Fabricator(:readonly_user_api_key, from: :user_api_key) do
|
2020-09-29 05:57:48 -04:00
|
|
|
scopes { [Fabricate.build(:user_api_key_scope, name: 'read')] }
|
2016-09-02 02:57:41 -04:00
|
|
|
end
|
2020-10-08 12:38:54 -04:00
|
|
|
|
|
|
|
Fabricator(:bookmarks_calendar_user_api_key, from: :user_api_key) do
|
|
|
|
scopes { [Fabricate.build(:user_api_key_scope, name: 'bookmarks_calendar')] }
|
|
|
|
end
|