Permalink
Browse files

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

Fix build after #10727
  • Loading branch information...
2 parents eabbfb2 + 20bd163 commit 76462a8543b7feac6b2957cf2c0724b30775c3c7 @rafaelfranca rafaelfranca committed Jun 16, 2013
View
1 activesupport/test/xml_mini/libxml_engine_test.rb
@@ -195,6 +195,7 @@ def test_children_with_blank_text_and_attribute
private
def assert_equal_rexml(xml)
parsed_xml = XmlMini.parse(xml)
+ xml.rewind if xml.respond_to?(:rewind)
hash = XmlMini.with_backend('REXML') { XmlMini.parse(xml) }
assert_equal(hash, parsed_xml)
end
View
1 activesupport/test/xml_mini/libxmlsax_engine_test.rb
@@ -186,6 +186,7 @@ def test_children_with_blank_text
private
def assert_equal_rexml(xml)
parsed_xml = XmlMini.parse(xml)
+ xml.rewind if xml.respond_to?(:rewind)
hash = XmlMini.with_backend('REXML') { XmlMini.parse(xml) }
assert_equal(hash, parsed_xml)
end
View
3 activesupport/test/xml_mini/nokogiri_engine_test.rb
@@ -208,7 +208,8 @@ def test_children_with_blank_text_and_attribute
private
def assert_equal_rexml(xml)
parsed_xml = XmlMini.parse(xml)
- hash = XmlMini.with_backend('REXML') { XmlMini.parse(parsed_xml) }
+ xml.rewind if xml.respond_to?(:rewind)
+ hash = XmlMini.with_backend('REXML') { XmlMini.parse(xml) }
assert_equal(hash, parsed_xml)
end
end
View
1 activesupport/test/xml_mini/nokogirisax_engine_test.rb
@@ -209,6 +209,7 @@ def test_children_with_blank_text_and_attribute
private
def assert_equal_rexml(xml)
parsed_xml = XmlMini.parse(xml)
+ xml.rewind if xml.respond_to?(:rewind)
hash = XmlMini.with_backend('REXML') { XmlMini.parse(xml) }
assert_equal(hash, parsed_xml)
end
View
1 activesupport/test/xml_mini/rexml_engine_test.rb
@@ -30,6 +30,7 @@ def test_parse_from_io
private
def assert_equal_rexml(xml)
parsed_xml = XmlMini.parse(xml)
+ xml.rewind if xml.respond_to?(:rewind)
hash = XmlMini.with_backend('REXML') { XmlMini.parse(xml) }
assert_equal(hash, parsed_xml)
end

0 comments on commit 76462a8

Please sign in to comment.