mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-26 16:04:59 +00:00
14 lines
248 B
Ruby
14 lines
248 B
Ruby
# frozen_string_literal: true
|
|
|
|
FactoryBot.define do
|
|
factory :inbox do
|
|
account
|
|
channel { FactoryBot.build(:channel_widget, account: account) }
|
|
name { 'Inbox' }
|
|
|
|
after(:create) do |inbox|
|
|
inbox.channel.save!
|
|
end
|
|
end
|
|
end
|