]> git.openstreetmap.org Git - rails.git/blob - test/factories/oauth_access_token.rb
Merge remote-tracking branch 'upstream/pull/5537'
[rails.git] / test / factories / oauth_access_token.rb
1 FactoryBot.define do
2   factory :oauth_access_token, :class => "Doorkeeper::AccessToken" do
3     application :factory => :oauth_application
4
5     resource_owner_id { user.id }
6
7     transient do
8       user { create(:user) } # rubocop:disable FactoryBot/FactoryAssociationWithStrategy
9     end
10   end
11 end