role.rb 215 B

1234567891011121314
  1. FactoryBot.define do
  2. sequence :test_role_name do |n|
  3. "TestRole#{n}"
  4. end
  5. end
  6. FactoryBot.define do
  7. factory :role do
  8. name { generate(:test_role_name) }
  9. created_by_id 1
  10. updated_by_id 1
  11. end
  12. end