2019-07-25 01:11:48 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2017-12-13 19:13:44 -05:00
|
|
|
FactoryBot.define do
|
2016-04-13 01:39:18 -04:00
|
|
|
factory :oauth_application, class: 'Doorkeeper::Application', aliases: [:application] do
|
2017-03-23 09:08:39 -04:00
|
|
|
sequence(:name) { |n| "OAuth App #{n}" }
|
2016-12-09 12:36:50 -05:00
|
|
|
uid { Doorkeeper::OAuth::Helpers::UniqueToken.generate }
|
2017-03-23 09:08:39 -04:00
|
|
|
redirect_uri { generate(:url) }
|
2016-04-13 01:39:18 -04:00
|
|
|
owner
|
|
|
|
owner_type 'User'
|
|
|
|
end
|
|
|
|
end
|