BigW Consortium Gitlab

oauth_applications.rb 297 Bytes
Newer Older
1 2
FactoryGirl.define do
  factory :oauth_application, class: 'Doorkeeper::Application', aliases: [:application] do
3
    sequence(:name) { |n| "OAuth App #{n}" }
4
    uid { Doorkeeper::OAuth::Helpers::UniqueToken.generate }
5
    redirect_uri { generate(:url) }
6 7 8 9
    owner
    owner_type 'User'
  end
end