]> git.openstreetmap.org Git - rails.git/blobdiff - test/factories/oauth_access_token.rb
Merge remote-tracking branch 'upstream/pull/5398'
[rails.git] / test / factories / oauth_access_token.rb
index 3f862fbca752e9887cbf63df02491ea493c83f10..6a8b62f6c077217548278d3330c6c98c2823abc7 100644 (file)
@@ -1,5 +1,7 @@
 FactoryBot.define do
   factory :oauth_access_token, :class => "Doorkeeper::AccessToken" do
     application :factory => :oauth_application
+
+    resource_owner_id { create(:user).id }
   end
 end