File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -263,11 +263,13 @@ def test_issue_1077_parsing_of_frozen_strings
263
263
Nokogiri ::XML ::DocumentFragment . parse ( input ) # assert_nothing_raised
264
264
end
265
265
266
- def test_dup_should_exist_in_a_new_document
267
- # https://github.com/sparklemotion/nokogiri/issues/1063
268
- original = Nokogiri ::XML ::DocumentFragment . parse ( "<div><p>hello</p></div>" )
269
- duplicate = original . dup
270
- assert_not_equal original . document , duplicate . document
266
+ if Nokogiri . uses_libxml?
267
+ def test_dup_should_exist_in_a_new_document
268
+ # https://github.com/sparklemotion/nokogiri/issues/1063
269
+ original = Nokogiri ::XML ::DocumentFragment . parse ( "<div><p>hello</p></div>" )
270
+ duplicate = original . dup
271
+ assert_not_equal original . document , duplicate . document
272
+ end
271
273
end
272
274
273
275
def test_dup_should_create_an_xml_document_fragment
You can’t perform that action at this time.
0 commit comments