aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/xml_mini/rexml_engine_test.rb
diff options
context:
space:
mode:
authorPaco Guzman <pacoguzmanp@gmail.com>2013-06-16 00:32:33 +0200
committerPaco Guzman <pacoguzmanp@gmail.com>2013-06-16 00:32:33 +0200
commit20bd16330c006f1abb092587890bced9da53422a (patch)
tree6045fd3dc0e336817d32913903375188dc1edeb4 /activesupport/test/xml_mini/rexml_engine_test.rb
parente04d9538ea19e4032f25a3e5818a884b7dd602ea (diff)
downloadrails-20bd16330c006f1abb092587890bced9da53422a.tar.gz
rails-20bd16330c006f1abb092587890bced9da53422a.tar.bz2
rails-20bd16330c006f1abb092587890bced9da53422a.zip
Rewind StringIO instances before be parsed again
Diffstat (limited to 'activesupport/test/xml_mini/rexml_engine_test.rb')
-rw-r--r--activesupport/test/xml_mini/rexml_engine_test.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/activesupport/test/xml_mini/rexml_engine_test.rb b/activesupport/test/xml_mini/rexml_engine_test.rb
index 0f1187db57..0c1f11803c 100644
--- a/activesupport/test/xml_mini/rexml_engine_test.rb
+++ b/activesupport/test/xml_mini/rexml_engine_test.rb
@@ -30,6 +30,7 @@ class REXMLEngineTest < ActiveSupport::TestCase
private
def assert_equal_rexml(xml)
parsed_xml = XmlMini.parse(xml)
+ xml.rewind if xml.respond_to?(:rewind)
hash = XmlMini.with_backend('REXML') { XmlMini.parse(xml) }
assert_equal(hash, parsed_xml)
end