[Pkg-puppet-devel] [SCM] Puppet packaging for Debian branch, upstream, updated. 0.25.5-639-g8f94f35

Markus Roberts Markus at reality.com
Wed Jul 14 10:36:29 UTC 2010


The following commit has been merged in the upstream branch:
commit 37277a521e41777f8e97923b2ffa5f782206b415
Author: Jesse Wolfe <jes5199 at gmail.com>
Date:   Thu Jul 1 16:51:25 2010 -0700

    maint: fix stubbing in catalog_spec.rb
    
    Puppet::Util::Storage was trying to create state.yaml during unrelated
    specs.

diff --git a/spec/unit/resource/catalog_spec.rb b/spec/unit/resource/catalog_spec.rb
index e633b13..00c17b3 100755
--- a/spec/unit/resource/catalog_spec.rb
+++ b/spec/unit/resource/catalog_spec.rb
@@ -6,6 +6,8 @@ describe Puppet::Resource::Catalog, "when compiling" do
 
     before do
         @basepath = Puppet.features.posix? ? "/somepath" : "C:/somepath"
+        # stub this to not try to create state.yaml
+        Puppet::Util::Storage.stubs(:store)
     end
 
     it "should be an Expirer" do
@@ -599,6 +601,8 @@ describe Puppet::Resource::Catalog, "when compiling" do
             Puppet::Transaction.stubs(:new).returns(@transaction)
             @transaction.stubs(:evaluate)
             @transaction.stubs(:add_times)
+
+            Puppet.settings.stubs(:use)
         end
 
         it "should create and evaluate a transaction" do

-- 
Puppet packaging for Debian



More information about the Pkg-puppet-devel mailing list