ぼざクリタグ広場 https://hub.nizika.monster
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

25 lines
374 B

  1. FactoryBot.define do
  2. factory :user do
  3. name { nil }
  4. inheritance_code { SecureRandom.uuid }
  5. role { 'guest' }
  6. banned_at { nil }
  7. trait :guest do
  8. role { 'guest' }
  9. end
  10. trait :member do
  11. role { 'member' }
  12. end
  13. trait :admin do
  14. role { 'admin' }
  15. end
  16. trait :banned do
  17. banned_at { Time.current }
  18. end
  19. end
  20. end