test/helper.rb in launchpad-0.2.2 vs test/helper.rb in launchpad-0.3.0
- old
+ new
@@ -1,21 +1,17 @@
-require 'rubygems'
-require 'test/unit'
-require 'shoulda'
-require 'mocha'
+require 'minitest/spec'
+require 'minitest/autorun'
begin
- require 'redgreen' if ENV['TM_FILENAME'].nil?
-rescue MissingSourceFile
- # ignore - just for colorization
+ require 'minitest/reporters'
+ MiniTest::Reporters.use!
+rescue LoadError
+ # ignore when it's not there - must be ruby 1.8
end
-$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
-$LOAD_PATH.unshift(File.dirname(__FILE__))
-require 'launchpad'
+require 'mocha/setup'
-class Test::Unit::TestCase
-end
+require 'launchpad'
# mock Portmidi for tests
module Portmidi
class Input