openstreetmap-website/test/factories/oauth_applications.rb
Andy Allan cb4f99fef2 Use implicit style for associations with factory overrides
This matches our usage of implicit style for associations generally,
e.g. `user`.
2023-09-06 10:20:23 +01:00

8 lines
243 B
Ruby

FactoryBot.define do
factory :oauth_application, :class => "Oauth2Application" do
sequence(:name) { |n| "OAuth application #{n}" }
sequence(:redirect_uri) { |n| "https://example.com/app/#{n}" }
owner :factory => :user
end
end