# frozen_string_literal: true require "rails_helper" require "pretty_text" RSpec.describe PrettyText do let(:post) { Fabricate(:post) } it "replaces lazy videos in emails" do cooked_html = <<~HTML
HTML email_formated = <<~HTML

15 Sorting Algorithms in 6 Minutes

Dear Rich

HTML expect(PrettyText.format_for_email(cooked_html, post)).to match_html(email_formated) end end