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:
commit
76462a8543
5 changed files with 6 additions and 1 deletions
|
@ -195,6 +195,7 @@ class LibxmlEngineTest < ActiveSupport::TestCase
|
|||
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
|
||||
|
|
|
@ -186,6 +186,7 @@ class LibXMLSAXEngineTest < ActiveSupport::TestCase
|
|||
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
|
||||
|
|
|
@ -208,7 +208,8 @@ class NokogiriEngineTest < ActiveSupport::TestCase
|
|||
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
|
||||
|
|
|
@ -209,6 +209,7 @@ class NokogiriSAXEngineTest < ActiveSupport::TestCase
|
|||
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
|
||||
|
|
|
@ -30,6 +30,7 @@ class REXMLEngineTest < ActiveSupport::TestCase
|
|||
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
|
||||
|
|
Loading…
Reference in a new issue