spec/spec_helper.rb in bret-watircraft-0.4.5 vs spec/spec_helper.rb in bret-watircraft-0.5.0
- old
+ new
@@ -1,7 +1,15 @@
require 'rubygems'
require 'spec'
require 'mocha'
+begin
+ # Needed for rspec 1.2.x. (Allows "ruby" to run specs.)
+ # But not available before that.
+ require 'spec/autorun'
+rescue LoadError
+ nil
+end
+
require 'config/vendorized_gems'
lib_path = File.expand_path("#{File.dirname(__FILE__)}/../lib")
$LOAD_PATH.unshift lib_path unless $LOAD_PATH.include?(lib_path)
# Must set before requiring generator libs.