1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

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

Fix build after #10727
This commit is contained in:
Rafael Mendonça França 2013-06-15 18:47:12 -07:00
commit 76462a8543
5 changed files with 6 additions and 1 deletions

View file

@ -195,6 +195,7 @@ class LibxmlEngineTest < ActiveSupport::TestCase
private private
def assert_equal_rexml(xml) def assert_equal_rexml(xml)
parsed_xml = XmlMini.parse(xml) parsed_xml = XmlMini.parse(xml)
xml.rewind if xml.respond_to?(:rewind)
hash = XmlMini.with_backend('REXML') { XmlMini.parse(xml) } hash = XmlMini.with_backend('REXML') { XmlMini.parse(xml) }
assert_equal(hash, parsed_xml) assert_equal(hash, parsed_xml)
end end

View file

@ -186,6 +186,7 @@ class LibXMLSAXEngineTest < ActiveSupport::TestCase
private private
def assert_equal_rexml(xml) def assert_equal_rexml(xml)
parsed_xml = XmlMini.parse(xml) parsed_xml = XmlMini.parse(xml)
xml.rewind if xml.respond_to?(:rewind)
hash = XmlMini.with_backend('REXML') { XmlMini.parse(xml) } hash = XmlMini.with_backend('REXML') { XmlMini.parse(xml) }
assert_equal(hash, parsed_xml) assert_equal(hash, parsed_xml)
end end

View file

@ -208,7 +208,8 @@ class NokogiriEngineTest < ActiveSupport::TestCase
private private
def assert_equal_rexml(xml) def assert_equal_rexml(xml)
parsed_xml = XmlMini.parse(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) assert_equal(hash, parsed_xml)
end end
end end

View file

@ -209,6 +209,7 @@ class NokogiriSAXEngineTest < ActiveSupport::TestCase
private private
def assert_equal_rexml(xml) def assert_equal_rexml(xml)
parsed_xml = XmlMini.parse(xml) parsed_xml = XmlMini.parse(xml)
xml.rewind if xml.respond_to?(:rewind)
hash = XmlMini.with_backend('REXML') { XmlMini.parse(xml) } hash = XmlMini.with_backend('REXML') { XmlMini.parse(xml) }
assert_equal(hash, parsed_xml) assert_equal(hash, parsed_xml)
end end

View file

@ -30,6 +30,7 @@ class REXMLEngineTest < ActiveSupport::TestCase
private private
def assert_equal_rexml(xml) def assert_equal_rexml(xml)
parsed_xml = XmlMini.parse(xml) parsed_xml = XmlMini.parse(xml)
xml.rewind if xml.respond_to?(:rewind)
hash = XmlMini.with_backend('REXML') { XmlMini.parse(xml) } hash = XmlMini.with_backend('REXML') { XmlMini.parse(xml) }
assert_equal(hash, parsed_xml) assert_equal(hash, parsed_xml)
end end