Permalink
Browse files

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

Fix XmlMini different backends tests
  • Loading branch information...
1 parent a4e5b63 commit 62c1e6c2db653bf04623eaaf24bd9e9b447f1c19 @rafaelfranca rafaelfranca committed Jun 15, 2013
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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

0 comments on commit 62c1e6c

Please sign in to comment.