X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/90360df6d76627d29eeaee7f1d1c2819e5d206b2..3adb697385824cb7b7208825d9ba3535d8f4d67f:/test/factories/oauth_access_token.rb?ds=sidebyside diff --git a/test/factories/oauth_access_token.rb b/test/factories/oauth_access_token.rb index 5b39cb400..6a8b62f6c 100644 --- a/test/factories/oauth_access_token.rb +++ b/test/factories/oauth_access_token.rb @@ -1,5 +1,7 @@ FactoryBot.define do factory :oauth_access_token, :class => "Doorkeeper::AccessToken" do - association :application, :factory => :oauth_application + application :factory => :oauth_application + + resource_owner_id { create(:user).id } end end