Skip to content

Commit

Permalink
frozen-string-literal support in tests
Browse files Browse the repository at this point in the history
Partially fixes #118
  • Loading branch information
flavorjones committed Nov 13, 2017
1 parent b5bb191 commit 00c90e5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/html5/test_sanitizer.rb
Expand Up @@ -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.
Expand Down

0 comments on commit 00c90e5

Please sign in to comment.