X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/ae00fa84c8f981e909c61ab31b6115bb96e859cc..8f7f02b025f59db466fdb22ea3686cb6c5adc400:/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 6a8b62f6c..dce8c6520 100644 --- a/test/factories/oauth_access_token.rb +++ b/test/factories/oauth_access_token.rb @@ -2,6 +2,10 @@ FactoryBot.define do factory :oauth_access_token, :class => "Doorkeeper::AccessToken" do application :factory => :oauth_application - resource_owner_id { create(:user).id } + resource_owner_id { user.id } + + transient do + user { create(:user) } # rubocop:disable FactoryBot/FactoryAssociationWithStrategy + end end end