[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:32 UTC 2010


The following commit has been merged in the upstream branch:
commit 1f48d6892666dec67d316b6dd78bab09e181d35b
Author: Jesse Wolfe <jes5199 at gmail.com>
Date:   Thu Jul 1 17:12:55 2010 -0700

    maint: fix stub failures in report_spec.rb
    
    Puppet::Util::Storage was trying to create state.yaml during unrelated
    specs.

diff --git a/spec/unit/transaction/report_spec.rb b/spec/unit/transaction/report_spec.rb
index 4f3c90d..4b9e06c 100755
--- a/spec/unit/transaction/report_spec.rb
+++ b/spec/unit/transaction/report_spec.rb
@@ -5,6 +5,10 @@ require File.dirname(__FILE__) + '/../../spec_helper'
 require 'puppet/transaction/report'
 
 describe Puppet::Transaction::Report do
+    before do
+        Puppet::Util::Storage.stubs(:store)
+    end
+
     it "should set its host name to the certname" do
         Puppet.settings.expects(:value).with(:certname).returns "myhost"
         Puppet::Transaction::Report.new.host.should == "myhost"
diff --git a/spec/unit/type/package_spec.rb b/spec/unit/type/package_spec.rb
index 7cbd76a..02f3f9f 100755
--- a/spec/unit/type/package_spec.rb
+++ b/spec/unit/type/package_spec.rb
@@ -7,7 +7,6 @@ describe Puppet::Type.type(:package) do
         Puppet::Util::Storage.stubs(:store)
     end
 
-
     it "should have an :installable feature that requires the :install method" do
         Puppet::Type.type(:package).provider_feature(:installable).methods.should == [:install]
     end

-- 
Puppet packaging for Debian



More information about the Pkg-puppet-devel mailing list