diff --git a/test/bson/test_helper.rb b/test/bson/test_helper.rb index 5cda020..d69e7cc 100644 --- a/test/bson/test_helper.rb +++ b/test/bson/test_helper.rb @@ -1,5 +1,6 @@ require File.join(File.dirname(__FILE__), '..', '..', 'lib', 'bson') require 'rubygems' if RUBY_VERSION < '1.9.0' && ENV['C_EXT'] +gem 'test-unit' if RUBY_VERSION > '1.9.0' require 'test/unit' def silently diff --git a/test/test_helper.rb b/test/test_helper.rb index 17df08f..f502247 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -1,6 +1,7 @@ $:.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) require 'rubygems' if RUBY_VERSION < '1.9.0' && ENV['C_EXT'] require 'mongo' +gem 'test-unit' if RUBY_VERSION > '1.9.0' require 'test/unit' def silently