diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-05-08 06:50:03 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-05-08 06:50:03 +0000 |
commit | 63a164f32ed6c62cd40304837ad8f8a3f93a4296 (patch) | |
tree | 86eab86b684a6bd49174abb85aa4adda13c201c1 /test/rexml/test_order.rb | |
parent | a0d2cd2e1eee9765b14506360d51d6b1e2f23b58 (diff) |
test: fix test conditions
* test/csv/test_features.rb (TestCSV#test_gzip_reader_bug_fix): test
only if zlib is available.
* test/csv/test_features.rb (TestCSV#test_gzip_writer_bug_fix): ditto.
* test/open-uri/test_open-uri.rb (TestOpenURI#test_content_encoding):
ditto.
* test/rexml/test_order.rb (OrderTester#test_more_ordering): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35592 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/rexml/test_order.rb')
-rw-r--r-- | test/rexml/test_order.rb | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/test/rexml/test_order.rb b/test/rexml/test_order.rb index a87b1c2728..3f874c2052 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 |