X-Git-Url: https://review.fuel-infra.org/gitweb?a=blobdiff_plain;f=spec%2Fspec_helper.rb;fp=spec%2Fspec_helper.rb;h=0000000000000000000000000000000000000000;hb=d1f1649ba43c5cbc43c4beb2380096ba051d646a;hp=81193abd84be50b52ae26013a4cf0df5ae84c823;hpb=8a3fe7daeecccf43dd71c59371c5005400d35101;p=packages%2Fprecise%2Fmcollective.git diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb deleted file mode 100644 index 81193ab..0000000 --- a/spec/spec_helper.rb +++ /dev/null @@ -1,33 +0,0 @@ -dir = File.expand_path(File.dirname(__FILE__)) -$LOAD_PATH.unshift("#{dir}/") -$LOAD_PATH.unshift("#{dir}/../lib") -$LOAD_PATH.unshift("#{dir}/../plugins") - -require 'rubygems' - -gem 'mocha' - -require 'rspec' -require 'mcollective' -require 'rspec/mocks' -require 'mocha' -require 'ostruct' -require 'tmpdir' -require 'tempfile' -require 'fileutils' - -require 'monkey_patches/instance_variable_defined' -require 'matchers/exception_matchers' - -RSpec.configure do |config| - config.mock_with :mocha - config.include(MCollective::Matchers) - - config.before :each do - MCollective::Config.instance.set_config_defaults("") - MCollective::PluginManager.clear - MCollective::Log.stubs(:log) - MCollective::Log.stubs(:logmsg) - MCollective::Log.stubs(:logexception) - end -end