Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #10727 from pacoguzman/fix-xml-mini-tests

Fix XmlMini different backends tests
  • Loading branch information...
commit eabbfb2348c01582957e1bd21394ae7cc98ef83e 2 parents c0058ae + 74c7910
Rafael Mendonça França rafaelfranca authored
2  activesupport/test/xml_mini/jdom_engine_test.rb
View
@@ -178,7 +178,7 @@ def test_children_with_non_adjacent_text
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
2  activesupport/test/xml_mini/libxml_engine_test.rb
View
@@ -195,7 +195,7 @@ def test_children_with_blank_text_and_attribute
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
2  activesupport/test/xml_mini/libxmlsax_engine_test.rb
View
@@ -186,7 +186,7 @@ def test_children_with_blank_text
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
2  activesupport/test/xml_mini/nokogiri_engine_test.rb
View
@@ -208,7 +208,7 @@ def test_children_with_blank_text_and_attribute
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
2  activesupport/test/xml_mini/nokogirisax_engine_test.rb
View
@@ -209,7 +209,7 @@ def test_children_with_blank_text_and_attribute
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
2  activesupport/test/xml_mini/rexml_engine_test.rb
View
@@ -30,7 +30,7 @@ def test_parse_from_io
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
Please sign in to comment.
Something went wrong with that request. Please try again.