[Pkg-puppet-devel] [facter] 73/180: (maint) Stub out kernel fact for linux dhcp server tests

Stig Sandbeck Mathisen ssm at debian.org
Mon Jun 30 15:06:32 UTC 2014


This is an automated email from the git hooks/post-receive script.

ssm pushed a commit to branch master
in repository facter.

commit 60cba508726bcbcb1ede6b894767cdf9bea894bb
Author: Adrien Thebo <git at somethingsinistral.net>
Date:   Thu May 1 12:04:40 2014 -0700

    (maint) Stub out kernel fact for linux dhcp server tests
---
 spec/unit/dhcp_servers_spec.rb | 1 +
 1 file changed, 1 insertion(+)

diff --git a/spec/unit/dhcp_servers_spec.rb b/spec/unit/dhcp_servers_spec.rb
index 2c5e141..abda8d0 100644
--- a/spec/unit/dhcp_servers_spec.rb
+++ b/spec/unit/dhcp_servers_spec.rb
@@ -3,6 +3,7 @@ require 'spec_helper'
 describe "DHCP server facts" do
   describe "on Linux OS's" do
     before :each do
+      Facter.fact(:kernel).stubs(:value).returns 'Linux'
       Facter::Core::Execution.stubs(:exec).with("route -n").returns(my_fixture_read("route"))
     end
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-puppet/facter.git



More information about the Pkg-puppet-devel mailing list