summaryrefslogtreecommitdiff
path: root/spec/factories/oauth_applications.rb
blob: 4427da1d6c7b42d30f636220ec9c99baa21adc34 (plain)
1
2
3
4
5
6
7
8
9
FactoryBot.define do
  factory :oauth_application, class: 'Doorkeeper::Application', aliases: [:application] do
    sequence(:name) { |n| "OAuth App #{n}" }
    uid { Doorkeeper::OAuth::Helpers::UniqueToken.generate }
    redirect_uri { generate(:url) }
    owner
    owner_type 'User'
  end
end