require 'rails_helper'
RSpec.describe Channel::EmailParser, type: :model do
describe '#parse' do
# regression test for issue 2390 - Add a postmaster filter to not show emails with potential issue
describe 'handling HTML links in message content' do
context 'with under 5,000 links' do
it 'parses message content as normal' do
expect(described_class.new.parse(<<~RAW)[:body]).to start_with('
#{Array.new(10) { 'Dummy Link' }.join(' ')}