foodsoft/spec/factories/doorkeeper.rb

16 lines
337 B
Ruby
Raw Normal View History

2018-10-15 16:47:14 +02:00
require 'factory_bot'
require 'doorkeeper'
FactoryBot.define do
factory :oauth2_application, class: Doorkeeper::Application do
name { Faker::App.name }
redirect_uri 'https://example.com:1234/app'
end
factory :oauth2_access_token, class: Doorkeeper::AccessToken do
application factory: :oauth2_application
end
end