Skip to content
This repository
Browse code

Merge pull request #10960 from pacoguzman/fix-build-due-to-10727

Fix build after #10727
  • Loading branch information...
commit 76462a8543b7feac6b2957cf2c0724b30775c3c7 2 parents eabbfb2 + 20bd163
Rafael Mendonça França rafaelfranca authored
1  activesupport/test/xml_mini/libxml_engine_test.rb
@@ -195,6 +195,7 @@ def test_children_with_blank_text_and_attribute
195 195 private
196 196 def assert_equal_rexml(xml)
197 197 parsed_xml = XmlMini.parse(xml)
  198 + xml.rewind if xml.respond_to?(:rewind)
198 199 hash = XmlMini.with_backend('REXML') { XmlMini.parse(xml) }
199 200 assert_equal(hash, parsed_xml)
200 201 end
1  activesupport/test/xml_mini/libxmlsax_engine_test.rb
@@ -186,6 +186,7 @@ def test_children_with_blank_text
186 186 private
187 187 def assert_equal_rexml(xml)
188 188 parsed_xml = XmlMini.parse(xml)
  189 + xml.rewind if xml.respond_to?(:rewind)
189 190 hash = XmlMini.with_backend('REXML') { XmlMini.parse(xml) }
190 191 assert_equal(hash, parsed_xml)
191 192 end
3  activesupport/test/xml_mini/nokogiri_engine_test.rb
@@ -208,7 +208,8 @@ def test_children_with_blank_text_and_attribute
208 208 private
209 209 def assert_equal_rexml(xml)
210 210 parsed_xml = XmlMini.parse(xml)
211   - hash = XmlMini.with_backend('REXML') { XmlMini.parse(parsed_xml) }
  211 + xml.rewind if xml.respond_to?(:rewind)
  212 + hash = XmlMini.with_backend('REXML') { XmlMini.parse(xml) }
212 213 assert_equal(hash, parsed_xml)
213 214 end
214 215 end
1  activesupport/test/xml_mini/nokogirisax_engine_test.rb
@@ -209,6 +209,7 @@ def test_children_with_blank_text_and_attribute
209 209 private
210 210 def assert_equal_rexml(xml)
211 211 parsed_xml = XmlMini.parse(xml)
  212 + xml.rewind if xml.respond_to?(:rewind)
212 213 hash = XmlMini.with_backend('REXML') { XmlMini.parse(xml) }
213 214 assert_equal(hash, parsed_xml)
214 215 end
1  activesupport/test/xml_mini/rexml_engine_test.rb
@@ -30,6 +30,7 @@ def test_parse_from_io
30 30 private
31 31 def assert_equal_rexml(xml)
32 32 parsed_xml = XmlMini.parse(xml)
  33 + xml.rewind if xml.respond_to?(:rewind)
33 34 hash = XmlMini.with_backend('REXML') { XmlMini.parse(xml) }
34 35 assert_equal(hash, parsed_xml)
35 36 end

0 comments on commit 76462a8

Please sign in to comment.
Something went wrong with that request. Please try again.