test/test_helper.rb in schubert-minglr-1.1.0 vs test/test_helper.rb in schubert-minglr-1.2.0
- old
+ new
@@ -1,10 +1,20 @@
-require 'rubygems'
-require 'test/unit'
-require 'shoulda'
+require "rubygems"
+require "test/unit"
+begin
+ require "shoulda"
+rescue LoadError
+ puts "Missing shoulda: sudo gem install thoughtbot-shoulda --source=http://gems.github.com/"
+end
+begin
+ require "mocha"
+rescue LoadError
+ puts "Missing mocha: sudo gem install mocha"
+end
-$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
+$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), "..", "lib"))
$LOAD_PATH.unshift(File.dirname(__FILE__))
-require 'minglr'
+$LOAD_PATH.unshift(File.dirname(__FILE__), "resources")
+require "minglr"
class Test::Unit::TestCase
end