X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/8d76be71bbb8a799cbf0627dee170f26ade5a11f..64f1742a6e29497cde4350325ae10ef185c1b30b:/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 c0f624530..6a8b62f6c 100644 --- a/test/factories/oauth_access_token.rb +++ b/test/factories/oauth_access_token.rb @@ -1,6 +1,7 @@ FactoryBot.define do factory :oauth_access_token, :class => "Doorkeeper::AccessToken" do - association :resource_owner_id, :factory => :user - association :application, :factory => :oauth_application + application :factory => :oauth_application + + resource_owner_id { create(:user).id } end end