[Pkg-puppet-devel] [SCM] Puppet packaging for Debian branch, upstream, updated. puppet-0.24.5-rc3-1601-gf8c1b08

Jesse Wolfe jes5199 at gmail.com
Fri Jan 15 09:08:06 UTC 2010


The following commit has been merged in the upstream branch:
commit 08840356c88c2478f523189e668eb96e410e27e6
Author: Jesse Wolfe <jes5199 at gmail.com>
Date:   Sun Dec 20 19:26:55 2009 -0800

    Fix #2970 spec/unit/provider/ssh_authorized_key/parsed.rb has order dependencies
    
    Some tests in this file were leaking a global setting, some other tests
    depended on those changes, and some tests were incompatible with that
    setting.
    
    Signed-off-by: Jesse Wolfe <jes5199 at gmail.com>

diff --git a/spec/unit/provider/ssh_authorized_key/parsed.rb b/spec/unit/provider/ssh_authorized_key/parsed.rb
index 49abc13..9abcda5 100755
--- a/spec/unit/provider/ssh_authorized_key/parsed.rb
+++ b/spec/unit/provider/ssh_authorized_key/parsed.rb
@@ -33,7 +33,7 @@ describe provider_class do
     end
 
     def genkey(key)
-        @provider.filetype = :ram
+        @provider.stubs(:filetype).returns(Puppet::Util::FileType::FileTypeRam)
         file = @provider.default_target
 
         key.flush
@@ -90,7 +90,9 @@ describe provider_class do
     before :each do
         @resource = stub("resource", :name => "foo")
         @resource.stubs(:[]).returns "foo"
+
         @provider = provider_class.new(@resource)
+        provider_class.stubs(:filetype).returns(Puppet::Util::FileType::FileTypeRam)
     end
 
     describe "when flushing" do

-- 
Puppet packaging for Debian



More information about the Pkg-puppet-devel mailing list