]> git.openstreetmap.org Git - rails.git/blobdiff - test/factories/oauth_applications.rb
Remove OAuth 1 ApiCapability user branch
[rails.git] / test / factories / oauth_applications.rb
index a9b3b875da7b003ff912b879aae2b9fce2547934..c865e0237383a0cded35c28064dc73e53adc05be 100644 (file)
@@ -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