changeset 353 | bf1bc6b08c46 |
352:d8a8c57f36c4 | 353:bf1bc6b08c46 |
---|---|
1 dir = File.expand_path(File.dirname(__FILE__)) |
|
2 $LOAD_PATH.unshift File.join(dir, 'lib') |
|
3 |
|
4 require 'mocha' |
|
5 require 'puppet' |
|
6 require 'rspec' |
|
7 require 'spec/autorun' |
|
8 |
|
9 Spec::Runner.configure do |config| |
|
10 config.mock_with :mocha |
|
11 end |
|
12 |
|
13 # We need this because the RAL uses 'should' as a method. This |
|
14 # allows us the same behaviour but with a different method name. |
|
15 class Object |
|
16 alias :must :should |
|
17 end |