test/html5/test_sanitizer.rb in loofah-0.4.1 vs test/html5/test_sanitizer.rb in loofah-0.4.2

- old
+ new

@@ -26,10 +26,10 @@ ## it would require a lot of manual hacking to make the tests match libxml's output. ## instead, I'm taking the shotgun approach, and trying to match any of the described outputs. assert((htmloutput == sane) || (rexmloutput == sane) || (xhtmloutput == sane), input) end - HTML5::WhiteList::ALLOWED_ELEMENTS.each do |tag_name| + (HTML5::WhiteList::ALLOWED_ELEMENTS).each do |tag_name| define_method "test_should_allow_#{tag_name}_tag" do input = "<#{tag_name} title='1'>foo <bad>bar</bad> baz</#{tag_name}>" htmloutput = "<#{tag_name.downcase} title='1'>foo &lt;bad&gt;bar&lt;/bad&gt; baz</#{tag_name.downcase}>" xhtmloutput = "<#{tag_name} title='1'>foo &lt;bad&gt;bar&lt;/bad&gt; baz</#{tag_name}>" rexmloutput = xhtmloutput