Restructure omni services and add Chatwoot research snapshot

This commit is contained in:
Ruslan Bakiev
2026-02-21 11:11:27 +07:00
parent edea7a0034
commit b73babbbf6
7732 changed files with 978203 additions and 32 deletions

View File

@@ -0,0 +1,19 @@
require 'rails_helper'
describe EmailHelper do
describe '#normalize_email_with_plus_addressing' do
context 'when email is passed' do
it 'normalise if plus addressing is present' do
expect(helper.normalize_email_with_plus_addressing('john+test@acme.inc')).to eq 'john@acme.inc'
end
it 'returns original if plus addressing is not present' do
expect(helper.normalize_email_with_plus_addressing('john@acme.inc')).to eq 'john@acme.inc'
end
it 'returns downcased version of email' do
expect(helper.normalize_email_with_plus_addressing('JoHn+AAsdfss@acme.inc')).to eq 'john@acme.inc'
end
end
end
end