summaryrefslogtreecommitdiff
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.rb7
1 files changed, 5 insertions, 2 deletions
diff --git a/test/rexml/test_order.rb b/test/rexml/test_order.rb
index a87b1c27280..3f874c2052c 100644
--- a/test/rexml/test_order.rb
+++ b/test/rexml/test_order.rb
@@ -1,6 +1,9 @@
require 'rexml_test_utils'
require 'rexml/document'
-require 'zlib'
+begin
+ require 'zlib'
+rescue LoadError
+end
class OrderTester < Test::Unit::TestCase
include REXMLTestUtils
@@ -98,5 +101,5 @@ END
assert_equal( actual[count], n ) unless n =~ /Arrive at/
count += 1
}
- end
+ end if defined?(Zlib::GzipReader)
end