# frozen_string_literal: true require "pretty_text" RSpec.describe PrettyText do let(:post) { Fabricate(:post) } it "replaces lazy videos in emails" do cooked_html = <<~HTML
HTML email_formatted = <<~HTML HTML expect(PrettyText.format_for_email(cooked_html, post)).to match_html(email_formatted) end end