summary refs log tree commit homepage
diff options
context:
space:
mode:
-rw-r--r--test/test_tdb_mt.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/test_tdb_mt.rb b/test/test_tdb_mt.rb
index 781e2bd..7f8611c 100644
--- a/test/test_tdb_mt.rb
+++ b/test/test_tdb_mt.rb
@@ -90,7 +90,10 @@ class Test_TDB_MT < Test::Unit::TestCase
     @tdb = TDB.new(nil)
     respond_to?(:refute_match) and
       m.each { |meth| refute_match(/\bTDB::MT\b/, @tdb.method(meth).to_s) }
+    before = m.map { |meth| [ meth, @tdb.method(meth).to_s ] }
     @tdb.threadsafe!
-    m.each { |meth| assert_match(/\bTDB::MT\b/, @tdb.method(meth).to_s) }
+    before.each do |(meth, old)|
+      refute_equal old, @tdb.method(meth).to_s
+    end
   end
 end