diff --git a/connection_pool.gemspec b/connection_pool.gemspec index 2b62504..2d8a3e3 100644 --- a/connection_pool.gemspec +++ b/connection_pool.gemspec @@ -15,4 +15,5 @@ Gem::Specification.new do |s| s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) } s.require_paths = ["lib"] s.license = "MIT" + s.add_development_dependency 'minitest', '>= 5.0.0' end diff --git a/test/helper.rb b/test/helper.rb index 0999053..362537a 100644 --- a/test/helper.rb +++ b/test/helper.rb @@ -2,9 +2,9 @@ require 'rubygems' require 'minitest/pride' require 'minitest/autorun' -puts RUBY_DESCRIPTION +require 'connection_pool' -class MiniTest::Unit::TestCase +class Minitest::Unit::TestCase def async_test(time=0.5) q = TimedQueue.new @@ -13,7 +13,3 @@ class MiniTest::Unit::TestCase end end - -$VERBOSE = 1 - -require_relative '../lib/connection_pool' diff --git a/test/test_connection_pool.rb b/test/test_connection_pool.rb index e94694b..71dfb7f 100644 --- a/test/test_connection_pool.rb +++ b/test/test_connection_pool.rb @@ -1,7 +1,7 @@ Thread.abort_on_exception = true require 'helper' -class TestConnectionPool < MiniTest::Unit::TestCase +class TestConnectionPool < Minitest::Test class NetworkConnection def initialize