foodsoft/spec/factories/doorkeeper.rb

14 lines
343 B
Ruby
Raw Permalink Normal View History

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