about summary refs log tree commit homepage
path: root/test/test_epoll_gc.rb
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2013-10-19 07:21:41 +0000
committerEric Wong <normalperson@yhbt.net>2013-10-19 07:26:33 +0000
commit18f96b1a5386dec0dc9b5f14c64c7de8b4230ca2 (patch)
tree8248743dc16f3f59f2e340c0a87000c57aff1ec9 /test/test_epoll_gc.rb
parent782dba32b5534ffaa5727a762a4c628bdac32331 (diff)
downloadsleepy_penguin-18f96b1a5386dec0dc9b5f14c64c7de8b4230ca2.tar.gz
Add a compatibility shim in test/helper to avoid noisy warnings with
Minitest (out-of-the-box on Ruby 2.0.0) and also Minitest 5.

Automated conversion via:
  perl -i -p -e 's,test/unit,./test/helper,g' test/test_*.rb
  perl -i -p -e 's,Test::Unit::TestCase,Testcase,g' test/test_*.rb

Yes, I prefer Perl for one-liners :P
Diffstat (limited to 'test/test_epoll_gc.rb')
-rw-r--r--test/test_epoll_gc.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_epoll_gc.rb b/test/test_epoll_gc.rb
index ed2df05..e2f0e10 100644
--- a/test/test_epoll_gc.rb
+++ b/test/test_epoll_gc.rb
@@ -1,9 +1,9 @@
-require 'test/unit'
+require './test/helper'
 $-w = true
 
 require 'sleepy_penguin'
 
-class TestEpollGC < Test::Unit::TestCase
+class TestEpollGC < Testcase
   include SleepyPenguin
 
   def setup