spec/spec_helper.rb in basset-1.0.1 vs spec/spec_helper.rb in basset-2.0.1
- old
+ new
@@ -1,4 +1,10 @@
-require 'spec'
-require File.join(File.dirname(__FILE__), "..", "lib", "basset")
+require "rubygems"
+require "spec"
-include Basset
\ No newline at end of file
+# gem install redgreen for colored test output
+begin require "redgreen" unless ENV['TM_CURRENT_LINE']; rescue LoadError; end
+
+path = File.expand_path(File.dirname(__FILE__) + "/../lib/")
+$LOAD_PATH.unshift(path) unless $LOAD_PATH.include?(path)
+
+require "lib/basset"