diff options
author | Santiago Pastorino <santiago@wyeworks.com> | 2013-04-02 05:23:29 -0700 |
---|---|---|
committer | Santiago Pastorino <santiago@wyeworks.com> | 2013-04-02 05:23:29 -0700 |
commit | a18c9f07fc1f4952d48e4f0473a3f14909068c62 (patch) | |
tree | 0919c8aee25518b5253d8363d49976aea647a9ac /activesupport/test/xml_mini/libxml_engine_test.rb | |
parent | 98b52826fe0de4d89df1bef7b72c9f8ca0db7bbc (diff) | |
parent | ae984cb1ef153fb9f97bb68bfb15c64e2050d9f0 (diff) | |
download | rails-a18c9f07fc1f4952d48e4f0473a3f14909068c62.tar.gz rails-a18c9f07fc1f4952d48e4f0473a3f14909068c62.tar.bz2 rails-a18c9f07fc1f4952d48e4f0473a3f14909068c62.zip |
Merge pull request #10042 from choudhuryanupam/fix_activesupport_test
Added missing assert
Diffstat (limited to 'activesupport/test/xml_mini/libxml_engine_test.rb')
-rw-r--r-- | activesupport/test/xml_mini/libxml_engine_test.rb | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/activesupport/test/xml_mini/libxml_engine_test.rb b/activesupport/test/xml_mini/libxml_engine_test.rb index 36ac4161ea..e7cb350663 100644 --- a/activesupport/test/xml_mini/libxml_engine_test.rb +++ b/activesupport/test/xml_mini/libxml_engine_test.rb @@ -141,7 +141,7 @@ class LibxmlEngineTest < ActiveSupport::TestCase morning </root> eoxml - XmlMini.parse(io) + assert_equal_rexml(io) end def test_children_with_simple_cdata @@ -193,10 +193,11 @@ class LibxmlEngineTest < ActiveSupport::TestCase private - def assert_equal_rexml(xml) - hash = XmlMini.with_backend('REXML') { XmlMini.parse(xml) } - assert_equal(hash, XmlMini.parse(xml)) - end + def assert_equal_rexml(xml) + parsed_xml = XmlMini.parse(xml) + hash = XmlMini.with_backend('REXML') { parsed_xml } + assert_equal(hash, parsed_xml) + end end end |