FIX: use match_html instead of removing new lines

FIX: use match_html instead of removing new lines

diff --git a/spec/lib/pretty_text_spec.rb b/spec/lib/pretty_text_spec.rb
index 584d834..1779fee 100644
--- a/spec/lib/pretty_text_spec.rb
+++ b/spec/lib/pretty_text_spec.rb
@@ -14,13 +14,13 @@ describe 'markdown' do
      [/policy]
     MD
 
-    cooked = (<<~HTML).strip.gsub("\n", "")
+    cooked = (<<~HTML).strip
       <div class="policy" data-group="team" data-version="1" data-reminder="weekly" data-accept="banana" data-revoke="apple" data-renew-start="01-01-2010">
       <p>I always open <strong>doors</strong>!</p>
       </div>
     HTML
 
-    expect(PrettyText.cook(raw).gsub("\n", "")).to eq(cooked)
+    expect(PrettyText.cook(raw)).to match_html(cooked)
   end
 
   it "sets the custom attribute on posts with policies" do

GitHub sha: 0062ff61