From 00c90e5b7c4f025165176b59135eac3dac7df611 Mon Sep 17 00:00:00 2001 From: Mike Dalessio Date: Mon, 13 Nov 2017 09:58:12 -0500 Subject: [PATCH] frozen-string-literal support in tests Partially fixes #118 --- test/html5/test_sanitizer.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/html5/test_sanitizer.rb b/test/html5/test_sanitizer.rb index 069caf7d..26b973a2 100755 --- a/test/html5/test_sanitizer.rb +++ b/test/html5/test_sanitizer.rb @@ -20,9 +20,9 @@ def sanitize_html stream def check_sanitization(input, htmloutput, xhtmloutput, rexmloutput) ## libxml uses double-quotes, so let's swappo-boppo our quotes before comparing. sane = sanitize_html(input).gsub('"',"'") - htmloutput.gsub!('"',"'") - xhtmloutput.gsub!('"',"'") - rexmloutput.gsub!('"',"'") + htmloutput = htmloutput.gsub('"',"'") + xhtmloutput = xhtmloutput.gsub('"',"'") + rexmloutput = rexmloutput.gsub('"',"'") ## HTML5's parsers are shit. there's so much inconsistency with what has closing tags, etc, that ## it would require a lot of manual hacking to make the tests match libxml's output.