diff options
| author | James Turnbull <james@lovedthanlost.net> | 2009-08-04 11:40:59 +1000 |
|---|---|---|
| committer | James Turnbull <james@lovedthanlost.net> | 2009-08-04 11:40:59 +1000 |
| commit | bf94de9939b31dbdbbce787696d331eb8e5f1e83 (patch) | |
| tree | 398aec4a55539916c5227083b78044cd6d97fc79 | |
| parent | 5b87dba681cc0aa3144dca59216223bb16d10a4a (diff) | |
| download | puppet-bf94de9939b31dbdbbce787696d331eb8e5f1e83.tar.gz puppet-bf94de9939b31dbdbbce787696d331eb8e5f1e83.tar.xz puppet-bf94de9939b31dbdbbce787696d331eb8e5f1e83.zip | |
Updated two more tests
| -rwxr-xr-x | spec/integration/type/file.rb | 4 | ||||
| -rw-r--r-- | spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb | 1 |
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 |
