X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/98bfaace9aeba7fb387596cc16b2e661506173c6..8f7f02b025f59db466fdb22ea3686cb6c5adc400:/test/factories/oauth_access_token.rb diff --git a/test/factories/oauth_access_token.rb b/test/factories/oauth_access_token.rb index 3f862fbca..dce8c6520 100644 --- a/test/factories/oauth_access_token.rb +++ b/test/factories/oauth_access_token.rb @@ -1,5 +1,11 @@ FactoryBot.define do factory :oauth_access_token, :class => "Doorkeeper::AccessToken" do application :factory => :oauth_application + + resource_owner_id { user.id } + + transient do + user { create(:user) } # rubocop:disable FactoryBot/FactoryAssociationWithStrategy + end end end