Sha256: a082d8596ca2cd0477330fc7e6d36ff35bfe0a1b62eb410271f44130c1e8884a
Contents?: true
Size: 991 Bytes
Versions: 3
Compression:
Stored size: 991 Bytes
Contents
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 'mcollective/test' require 'monkey_patches/instance_variable_defined' RSpec.configure do |config| config.mock_with :mocha config.include(MCollective::Test::Matchers) config.before :each do MCollective::Config.instance.set_config_defaults("") MCollective::PluginManager.clear end end # With the addition of the ddl requirement for connectors its becomes necessary # to stub the inherited method. Because tests don't use a real config files libdirs # aren't set and connectors have no way of finding their ddls so we stub it out # in the general case and test for is specifically. MCollective::Connector::Base.stubs(:inherited)
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
mcollective-client-2.7.0 | spec/spec_helper.rb |
mcollective-client-2.6.1 | spec/spec_helper.rb |
mcollective-client-2.6.0 | spec/spec_helper.rb |