trabajo-afectivo/spec/factories/knowledge_base_permissions.rb

9 lines
357 B
Ruby

# Copyright (C) 2012-2022 Zammad Foundation, https://zammad-foundation.org/
FactoryBot.define do
factory 'knowledge_base/permission', aliases: %i[knowledge_base_permission] do
permissionable { create(:knowledge_base_category) }
role { create(:role, permission_names: 'knowledge_base.editor') }
access { 'editor' }
end
end