token.rb 364 B

12345678910111213141516
  1. FactoryBot.define do
  2. factory :token, aliases: %i[token_api api_token] do
  3. user
  4. action { 'api' }
  5. persistent { true }
  6. factory :token_password_reset, aliases: %i[password_reset_token] do
  7. action { 'PasswordReset' }
  8. end
  9. factory :token_ical, aliases: %i[ical_token] do
  10. action { 'iCal' }
  11. persistent { true }
  12. end
  13. end
  14. end