From 25bf5c2d7af12136fc20aa77b75ff880fb04344c Mon Sep 17 00:00:00 2001 From: Paul Nasrat Date: Mon, 26 Apr 2010 07:26:14 +0100 Subject: Fix virtual unit test on non-linux by stubbing kernel Signed-off-by: Paul Nasrat --- spec/unit/virtual.rb | 1 + 1 file changed, 1 insertion(+) 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 -- cgit