aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/xml_mini/rexml_engine_test.rb
diff options
context:
space:
mode:
authorAnupam Choudhury <contact2anupam@gmail.com>2013-04-02 11:50:25 +0530
committerAnupam Choudhury <contact2anupam@gmail.com>2013-04-02 11:50:25 +0530
commitae984cb1ef153fb9f97bb68bfb15c64e2050d9f0 (patch)
tree0919c8aee25518b5253d8363d49976aea647a9ac /activesupport/test/xml_mini/rexml_engine_test.rb
parent98b52826fe0de4d89df1bef7b72c9f8ca0db7bbc (diff)
downloadrails-ae984cb1ef153fb9f97bb68bfb15c64e2050d9f0.tar.gz
rails-ae984cb1ef153fb9f97bb68bfb15c64e2050d9f0.tar.bz2
rails-ae984cb1ef153fb9f97bb68bfb15c64e2050d9f0.zip
Added missing assert
Diffstat (limited to 'activesupport/test/xml_mini/rexml_engine_test.rb')
-rw-r--r--activesupport/test/xml_mini/rexml_engine_test.rb9
1 files changed, 8 insertions, 1 deletions
diff --git a/activesupport/test/xml_mini/rexml_engine_test.rb b/activesupport/test/xml_mini/rexml_engine_test.rb
index c4770405f2..70a3b918fd 100644
--- a/activesupport/test/xml_mini/rexml_engine_test.rb
+++ b/activesupport/test/xml_mini/rexml_engine_test.rb
@@ -24,6 +24,13 @@ class REXMLEngineTest < ActiveSupport::TestCase
morning
</root>
eoxml
- XmlMini.parse(io)
+ assert_equal_rexml(io)
end
+
+ private
+ def assert_equal_rexml(xml)
+ parsed_xml = XmlMini.parse(xml)
+ hash = XmlMini.with_backend('REXML') { parsed_xml }
+ assert_equal(hash, parsed_xml)
+ end
end