aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/xml_mini/jdom_engine_test.rb
diff options
context:
space:
mode:
authorSantiago Pastorino <santiago@wyeworks.com>2013-04-02 05:23:29 -0700
committerSantiago Pastorino <santiago@wyeworks.com>2013-04-02 05:23:29 -0700
commita18c9f07fc1f4952d48e4f0473a3f14909068c62 (patch)
tree0919c8aee25518b5253d8363d49976aea647a9ac /activesupport/test/xml_mini/jdom_engine_test.rb
parent98b52826fe0de4d89df1bef7b72c9f8ca0db7bbc (diff)
parentae984cb1ef153fb9f97bb68bfb15c64e2050d9f0 (diff)
downloadrails-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/jdom_engine_test.rb')
-rw-r--r--activesupport/test/xml_mini/jdom_engine_test.rb9
1 files changed, 5 insertions, 4 deletions
diff --git a/activesupport/test/xml_mini/jdom_engine_test.rb b/activesupport/test/xml_mini/jdom_engine_test.rb
index 2dfdde5c62..904ef7b208 100644
--- a/activesupport/test/xml_mini/jdom_engine_test.rb
+++ b/activesupport/test/xml_mini/jdom_engine_test.rb
@@ -176,10 +176,11 @@ if RUBY_PLATFORM =~ /java/
end
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
else