Sha256: e4ec9e46df8c74b33efec9404a57b48f5d966e9dd08ea60d83f237986f598a38

Contents?: true

Size: 837 Bytes

Versions: 28

Compression:

Stored size: 837 Bytes

Contents

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

28 entries across 28 versions & 1 rubygems

Version Path
mcollective-client-2.9.1 spec/spec_helper.rb
mcollective-client-2.9.0 spec/spec_helper.rb
mcollective-client-2.8.9 spec/spec_helper.rb
mcollective-client-2.8.4 spec/spec_helper.rb
mcollective-client-2.8.3 spec/spec_helper.rb
mcollective-client-2.8.2 spec/spec_helper.rb
mcollective-client-2.8.1 spec/spec_helper.rb
mcollective-client-2.8.0 spec/spec_helper.rb