diff options
Diffstat (limited to 'test/rexml/test_rexml_issuezilla.rb')
-rw-r--r-- | test/rexml/test_rexml_issuezilla.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/rexml/test_rexml_issuezilla.rb b/test/rexml/test_rexml_issuezilla.rb index 8098646666..bb634663d5 100644 --- a/test/rexml/test_rexml_issuezilla.rb +++ b/test/rexml/test_rexml_issuezilla.rb @@ -5,7 +5,9 @@ module REXMLTests class TestIssuezillaParsing < Test::Unit::TestCase include REXMLTestUtils def test_rexml - doc = REXML::Document.new(File.new(fixture_path("ofbiz-issues-full-177.xml"))) + doc = File.open(fixture_path("ofbiz-issues-full-177.xml")) do |f| + REXML::Document.new(f) + end ctr = 1 doc.root.each_element('//issue') do |issue| assert_equal( ctr, issue.elements['issue_id'].text.to_i ) |