722f540b03
- Add email collect hook on creating conversation - Merge contact if it already exist
13 lines
248 B
Ruby
13 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
|