Blame SOURCES/rubygem-nokogiri-1.7.0.1-test-less-than-libxml2-2.9.patch

e33147
diff --git a/test/xml/test_entity_reference.rb b/test/xml/test_entity_reference.rb
e33147
index 04e2490..b28fb7e 100644
e33147
--- a/test/xml/test_entity_reference.rb
e33147
+++ b/test/xml/test_entity_reference.rb
e33147
@@ -236,14 +236,7 @@ EOF
e33147
         reader = Nokogiri::XML::Reader html, path do |cfg|
e33147
           cfg.default_xml
e33147
         end
e33147
-        if Nokogiri.uses_libxml? && Nokogiri::LIBXML_PARSER_VERSION.to_i >= 20900
e33147
-          # Unknown entity is not fatal in libxml2 >= 2.9
e33147
-          assert_equal 8, reader.count
e33147
-        else
e33147
-          assert_raises(Nokogiri::XML::SyntaxError) {
e33147
-            assert_equal 5, reader.count
e33147
-          }
e33147
-        end
e33147
+        assert_equal 8, reader.count
e33147
         assert_operator reader.errors.size, :>, 0
e33147
       end
e33147
     end
e33147
-- 
e33147
2.7.4
e33147