aboutsummaryrefslogtreecommitdiffstats
path: root/test/rexml/test_order.rb
diff options
context:
space:
mode:
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 628e75df62..0e84961b37 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",