From bf94de9939b31dbdbbce787696d331eb8e5f1e83 Mon Sep 17 00:00:00 2001 From: James Turnbull Date: Tue, 4 Aug 2009 11:40:59 +1000 Subject: Updated two more tests --- spec/integration/type/file.rb | 4 ++++ spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb | 1 + 2 files changed, 5 insertions(+) (limited to 'spec') 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 -- cgit