1
dir = File.expand_path(File.dirname(__FILE__))
3
$LOAD_PATH.unshift("#{dir}/")
4
$LOAD_PATH.unshift("#{dir}/../lib")
5
$LOAD_PATH.unshift("#{dir}/../test/lib") # Add the old test dir, so that we can still find our local mocha and spec
7
# include any gems in vendor/gems
8
Dir["#{dir}/../vendor/gems/**"].each do |path|
9
libpath = File.join(path, "lib")
10
if File.directory?(libpath)
11
$LOAD_PATH.unshift(libpath)
13
$LOAD_PATH.unshift(path)
18
require 'puppettest/runnable_test'
22
# load any monkey-patches
23
Dir["#{dir}/monkey_patches/*.rb"].map { |file| require file }
25
Spec::Runner.configure do |config|
26
config.mock_with :mocha
28
# config.prepend_before :all do
29
# setup_mocks_for_rspec
30
# setup() if respond_to? :setup
33
# config.prepend_after :all do
34
# teardown() if respond_to? :teardown