1 dir = File.expand_path(File.dirname(__FILE__))
2 $LOAD_PATH.unshift("#{dir}/")
3 $LOAD_PATH.unshift("#{dir}/../lib")
4 $LOAD_PATH.unshift("#{dir}/../plugins")
19 require 'monkey_patches/instance_variable_defined'
20 require 'matchers/exception_matchers'
22 RSpec.configure do |config|
23 config.mock_with :mocha
24 config.include(MCollective::Matchers)
26 config.before :each do
27 MCollective::Config.instance.set_config_defaults("")
28 MCollective::PluginManager.clear
29 MCollective::Log.stubs(:log)
30 MCollective::Log.stubs(:logmsg)
31 MCollective::Log.stubs(:logexception)