gitlab-org--gitlab-foss/spec/factories/oauth_applications.rb
2017-03-07 14:54:35 +01:00

9 lines
297 B
Ruby

FactoryGirl.define do
factory :oauth_application, class: 'Doorkeeper::Application', aliases: [:application] do
name { FFaker::Name.name }
uid { Doorkeeper::OAuth::Helpers::UniqueToken.generate }
redirect_uri { FFaker::Internet.uri('http') }
owner
owner_type 'User'
end
end