ぼざクリタグ広場 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.
 
 
 
 
 

14 lines
339 B

  1. module TestRecords
  2. def create_member_user!
  3. User.create!(name: 'spec user',
  4. inheritance_code: SecureRandom.hex(16),
  5. role: 'member')
  6. end
  7. def create_admin_user!
  8. User.create!(name: 'spec admin',
  9. inheritance_code: SecureRandom.hex(16),
  10. role: 'admin')
  11. end
  12. end