foodsoft/spec/factories/doorkeeper.rb
2022-02-20 16:28:54 +01:00

13 lines
343 B
Ruby

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