]> git.openstreetmap.org Git - rails.git/blob - test/factories/oauth_access_token.rb
Merge pull request #5932 from tomhughes/frozen-strings
[rails.git] / test / factories / oauth_access_token.rb
1 # frozen_string_literal: true
2
3 FactoryBot.define do
4   factory :oauth_access_token, :class => "Doorkeeper::AccessToken" do
5     application :factory => :oauth_application
6
7     resource_owner_id { user.id }
8
9     transient do
10       user { create(:user) } # rubocop:disable FactoryBot/FactoryAssociationWithStrategy
11     end
12   end
13 end