Sha256: 114392967076e15d10e578d72eceae5b5bfc9d1948f1e25f124f75fe3711fdd4
Contents?: true
Size: 737 Bytes
Versions: 1
Compression:
Stored size: 737 Bytes
Contents
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. TMP_ROOT = File.join(File.dirname(__FILE__),"sandbox","generated") PROJECT_NAME = 'example' PROJECT_FOLDER = File.join(TMP_ROOT,PROJECT_NAME) APP_ROOT = File.join(TMP_ROOT, PROJECT_NAME) Spec::Runner.configure do |config| config.mock_with :mocha end def null_device File.exists?('/dev/null') ? '/dev/null' : 'NUL' end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bret-watircraft-0.5.0 | spec/spec_helper.rb |