iachat/spec/factories/custom_roles.rb
Sojan Jose b61ad6e41a
feat: Add APIs to manage custom roles in Chatwoot (#9995)
Co-authored-by: Pranav <pranavrajs@gmail.com>
2024-08-23 17:18:28 +05:30

9 lines
223 B
Ruby

FactoryBot.define do
factory :custom_role do
account
name { Faker::Name.name }
description { Faker::Lorem.sentence }
permissions { CustomRole::PERMISSIONS.sample(SecureRandom.random_number(4)) }
end
end