summaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
Diffstat (limited to 'spec')
-rwxr-xr-xspec/integration/type/file.rb4
-rw-r--r--spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb1
2 files changed, 5 insertions, 0 deletions
diff --git a/spec/integration/type/file.rb b/spec/integration/type/file.rb
index 40f9244f1..4babdd5d1 100755
--- a/spec/integration/type/file.rb
+++ b/spec/integration/type/file.rb
@@ -7,6 +7,10 @@ require 'puppet_spec/files'
describe Puppet::Type.type(:file) do
include PuppetSpec::Files
+ before do
+ Puppet::Util::Log.newdestination :console
+ end
+
describe "when writing files" do
it "should backup files to a filebucket when one is configured" do
bucket = Puppet::Type.type(:filebucket).new :path => tmpfile("filebucket"), :name => "mybucket"
diff --git a/spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb b/spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb
index e6b1bf9c7..889919ee0 100644
--- a/spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb
+++ b/spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb
@@ -20,6 +20,7 @@ module Spec
next
end
success = success & example_group.run(@options)
+ Puppet.settings.clear
end
return success
ensure