mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Merge pull request #10727 from pacoguzman/fix-xml-mini-tests
Fix XmlMini different backends tests
This commit is contained in:
commit
eabbfb2348
6 changed files with 6 additions and 6 deletions
|
@ -178,7 +178,7 @@ if RUBY_PLATFORM =~ /java/
|
|||
private
|
||||
def assert_equal_rexml(xml)
|
||||
parsed_xml = XmlMini.parse(xml)
|
||||
hash = XmlMini.with_backend('REXML') { parsed_xml }
|
||||
hash = XmlMini.with_backend('REXML') { XmlMini.parse(xml) }
|
||||
assert_equal(hash, parsed_xml)
|
||||
end
|
||||
end
|
||||
|
|
|
@ -195,7 +195,7 @@ class LibxmlEngineTest < ActiveSupport::TestCase
|
|||
private
|
||||
def assert_equal_rexml(xml)
|
||||
parsed_xml = XmlMini.parse(xml)
|
||||
hash = XmlMini.with_backend('REXML') { parsed_xml }
|
||||
hash = XmlMini.with_backend('REXML') { XmlMini.parse(xml) }
|
||||
assert_equal(hash, parsed_xml)
|
||||
end
|
||||
end
|
||||
|
|
|
@ -186,7 +186,7 @@ class LibXMLSAXEngineTest < ActiveSupport::TestCase
|
|||
private
|
||||
def assert_equal_rexml(xml)
|
||||
parsed_xml = XmlMini.parse(xml)
|
||||
hash = XmlMini.with_backend('REXML') { parsed_xml }
|
||||
hash = XmlMini.with_backend('REXML') { XmlMini.parse(xml) }
|
||||
assert_equal(hash, parsed_xml)
|
||||
end
|
||||
end
|
||||
|
|
|
@ -208,7 +208,7 @@ class NokogiriEngineTest < ActiveSupport::TestCase
|
|||
private
|
||||
def assert_equal_rexml(xml)
|
||||
parsed_xml = XmlMini.parse(xml)
|
||||
hash = XmlMini.with_backend('REXML') { parsed_xml }
|
||||
hash = XmlMini.with_backend('REXML') { XmlMini.parse(parsed_xml) }
|
||||
assert_equal(hash, parsed_xml)
|
||||
end
|
||||
end
|
||||
|
|
|
@ -209,7 +209,7 @@ class NokogiriSAXEngineTest < ActiveSupport::TestCase
|
|||
private
|
||||
def assert_equal_rexml(xml)
|
||||
parsed_xml = XmlMini.parse(xml)
|
||||
hash = XmlMini.with_backend('REXML') { parsed_xml }
|
||||
hash = XmlMini.with_backend('REXML') { XmlMini.parse(xml) }
|
||||
assert_equal(hash, parsed_xml)
|
||||
end
|
||||
end
|
||||
|
|
|
@ -30,7 +30,7 @@ class REXMLEngineTest < ActiveSupport::TestCase
|
|||
private
|
||||
def assert_equal_rexml(xml)
|
||||
parsed_xml = XmlMini.parse(xml)
|
||||
hash = XmlMini.with_backend('REXML') { parsed_xml }
|
||||
hash = XmlMini.with_backend('REXML') { XmlMini.parse(xml) }
|
||||
assert_equal(hash, parsed_xml)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue