|
80 | 80 | assert_includes(doc, '<root xmlns="http://outer-namespace.org/">')
|
81 | 81 | assert_includes(doc, "<outer>in outer namespace</outer>")
|
82 | 82 | assert_includes(doc, '<inner xmlns="http://inner-namespace.org/">')
|
83 |
| - pending_if("https://github.com/sparklemotion/nokogiri/issues/3457", Nokogiri.jruby?) do |
84 |
| - # Here JRuby is incorrectly adding the xmlns namespace declaration, i.e.: |
85 |
| - # '<element xmlns="http://outer-namespace.org/">in inner namespace</element>' |
86 |
| - assert_includes(doc, "<element>in inner namespace</element>") |
87 |
| - end |
| 83 | + assert_includes(doc, "<element>in inner namespace</element>") |
88 | 84 | assert_includes(doc, "<another>back in outer namespace</another>")
|
89 | 85 | end
|
90 | 86 | end
|
|
184 | 180 | assert_includes(doc, "<default_element>in default namespace</default_element>")
|
185 | 181 | assert_includes(doc, "<ns:prefixed_element>in prefixed namespace</ns:prefixed_element>")
|
186 | 182 | assert_includes(doc, '<mixed xmlns="http://new-default.org/">')
|
187 |
| - pending_if("https://github.com/sparklemotion/nokogiri/issues/3457", Nokogiri.jruby?) do |
188 |
| - # Here JRuby is incorrectly adding the xmlns namespace declaration, i.e.: |
189 |
| - # '<new_default xmlns="http://default.org/">in new default namespace</new_default>' |
190 |
| - assert_includes(doc, "<new_default>in new default namespace</new_default>") |
191 |
| - end |
| 183 | + assert_includes(doc, "<new_default>in new default namespace</new_default>") |
192 | 184 | assert_includes(doc, "<ns:still_prefixed>still using original prefixed namespace</ns:still_prefixed>")
|
193 | 185 | end
|
194 | 186 | end
|
|
0 commit comments