summaryrefslogtreecommitdiff
path: root/test/rexml/test_order.rb
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-05-27 13:45:04 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-05-27 13:45:04 +0000
commit3356c312cddcc95af59e648c4ad946ec969d9813 (patch)
tree5e6ba12c41b94d5288f38cd60a913244288ddc34 /test/rexml/test_order.rb
parent3c908895abe6c6f113ae9776480cff983a6cd4bb (diff)
* test/rexml: Avoid fd leaks.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46178 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/rexml/test_order.rb')
-rw-r--r--test/rexml/test_order.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/rexml/test_order.rb b/test/rexml/test_order.rb
index 628e75d..0e84961 100644
--- a/test/rexml/test_order.rb
+++ b/test/rexml/test_order.rb
@@ -47,7 +47,9 @@ END
end
# Provided by Tom Talbott
def test_more_ordering
- doc = REXML::Document.new(Zlib::GzipReader.open(fixture_path('LostineRiver.kml.gz'), encoding: 'utf-8'))
+ doc = Zlib::GzipReader.open(fixture_path('LostineRiver.kml.gz'), encoding: 'utf-8') do |f|
+ REXML::Document.new(f)
+ end
actual = [
"Head south from Phinney Ave N",
"Turn left at N 36th St",