Open-source live-chat, email support, omni-channel desk. An alternative to Intercom, Zendesk, Salesforce Service Cloud etc. 🔥💬
Ruby actioncablechat-widgetconversationcustomer-supportdashboarddesigndockerdocker-imageherokuintercomjavascriptlivechatopensourcerailsrubysassvuejswhatsappzendesk
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('[email protected]')).to eq '[email protected]'
end
it 'returns original if plus addressing is not present' do
expect(helper.normalize_email_with_plus_addressing('[email protected]')).to eq '[email protected]'
end
it 'returns downcased version of email' do
expect(helper.normalize_email_with_plus_addressing('[email protected]')).to eq '[email protected]'
end
end
end
end