about summary refs log tree commit homepage
path: root/test/test_tdb_mt.rb
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2014-10-03 01:50:21 +0000
committerEric Wong <normalperson@yhbt.net>2014-10-03 02:02:19 +0000
commitcbbd977c444b6f1db2f771afd37175e259cd0e6a (patch)
treeb615699dbb5dd83b28b8015d959b1de78c3f2bab /test/test_tdb_mt.rb
parent2cca99841650f6d6a8c83ec9b6536128c328bdf5 (diff)
downloadruby-tdb-cbbd977c444b6f1db2f771afd37175e259cd0e6a.tar.gz
This will probably be the last release we make under Ruby 1.8
Diffstat (limited to 'test/test_tdb_mt.rb')
-rw-r--r--test/test_tdb_mt.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/test_tdb_mt.rb b/test/test_tdb_mt.rb
index 5e38901..781e2bd 100644
--- a/test/test_tdb_mt.rb
+++ b/test/test_tdb_mt.rb
@@ -73,6 +73,10 @@ class Test_TDB_MT < Test::Unit::TestCase
 
   def test_check_methods
     m = TDB.instance_methods.sort
+    if String === m[0]
+      warn "skipping test under Ruby 1.8"
+      return
+    end
     m -= Object.instance_methods
     m -= Enumerable.instance_methods
     m.map! { |x| x.to_sym }