X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/9018d1af07c53b03bf8caf0480b931dc25f57147..0a9dc1651e1476c904d9172bf9f522b9b18a779a:/test/factories/oauth_applications.rb?ds=inline diff --git a/test/factories/oauth_applications.rb b/test/factories/oauth_applications.rb index a9b3b875d..c865e0237 100644 --- a/test/factories/oauth_applications.rb +++ b/test/factories/oauth_applications.rb @@ -1,8 +1,8 @@ FactoryBot.define do - factory :oauth_application, :class => "Doorkeeper::Application" do + factory :oauth_application, :class => "Oauth2Application" do sequence(:name) { |n| "OAuth application #{n}" } sequence(:redirect_uri) { |n| "https://example.com/app/#{n}" } - association :owner, :factory => :user + owner :factory => :user end end