[Pkg-puppet-devel] [SCM] Packaging of Facter for debian branch, upstream, updated. 51bcebe38cab6088c901f1006339bbe40a36d161

James Turnbull james at lovedthanlost.net
Wed Aug 18 05:55:48 UTC 2010


The following commit has been merged in the upstream branch:
commit 25bf5c2d7af12136fc20aa77b75ff880fb04344c
Author: Paul Nasrat <pnasrat at googlemail.com>
Date:   Mon Apr 26 07:26:14 2010 +0100

    Fix virtual unit test on non-linux by stubbing kernel
    
    Signed-off-by: Paul Nasrat <pnasrat at googlemail.com>

diff --git a/spec/unit/virtual.rb b/spec/unit/virtual.rb
index fe9988e..7dbd146 100644
--- a/spec/unit/virtual.rb
+++ b/spec/unit/virtual.rb
@@ -50,6 +50,7 @@ describe "is_virtual fact" do
     end
 
     it "should be true when running on kvm" do
+        Facter.fact(:kernel).stubs(:value).returns("Linux")
         Facter.fact(:virtual).stubs(:value).returns("kvm")
         Facter.fact(:is_virtual).value.should == true
     end

-- 
Packaging of Facter for debian



More information about the Pkg-puppet-devel mailing list