Chatwoot/spec/factories/inboxes.rb

14 lines
248 B
Ruby
Raw Permalink Normal View History

# 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