mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-02 03:57:52 +00:00
- Enable jobs by default when a copilot thread or a message is created. - Rename thread_id to copilot_thread_id to keep it consistent with the model name - Add a spec for search_linear_issues service
14 lines
279 B
Ruby
14 lines
279 B
Ruby
FactoryBot.define do
|
|
factory :category, class: 'Category' do
|
|
portal
|
|
name { 'MyString' }
|
|
description { 'MyText' }
|
|
position { 1 }
|
|
slug { name.parameterize }
|
|
|
|
after(:build) do |category|
|
|
category.account ||= category.portal.account
|
|
end
|
|
end
|
|
end
|