4c2ca393a9
* detach IO write operation into separate method and add exception's handling for it * add tests for merge_settings_yaml provider Change-Id: I03d3e20177dd55dc2e56a4e65e031e71c8736567 Closes-Bug: #1522543
18 lines
457 B
Ruby
18 lines
457 B
Ruby
require 'rspec-puppet'
|
|
require 'puppetlabs_spec_helper/module_spec_helper'
|
|
|
|
fixture_path = File.expand_path(File.join(__FILE__, '..', 'fixtures'))
|
|
|
|
RSpec.configure do |c|
|
|
c.module_path = File.join(fixture_path, 'modules')
|
|
c.manifest_dir = File.join(fixture_path, 'manifests')
|
|
c.mock_with(:mocha)
|
|
end
|
|
|
|
def puppet_debug_override
|
|
if ENV['SPEC_PUPPET_DEBUG']
|
|
Puppet::Util::Log.level = :debug
|
|
Puppet::Util::Log.newdestination(:console)
|
|
end
|
|
end
|