test/minitest_helper.rb in tracker_api-1.9.1 vs test/minitest_helper.rb in tracker_api-1.10.0
- old
+ new
@@ -4,10 +4,13 @@
require 'coveralls'
Coveralls.wear!
require 'minitest/byebug' if ENV['DEBUG']
require 'minitest/autorun'
-require 'mocha/mini_test'
+
+require 'mocha'
+Mocha::VERSION.to_f >= 1.9 ? require('mocha/minitest') : require('mocha/mini_test')
+
require 'awesome_print'
require 'multi_json'
require 'vcr'
require 'tracker_api'