summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2008-02-08 11:41:22 -0600
committerLuke Kanies <luke@madstop.com>2008-02-08 11:41:22 -0600
commit7c500dac315ea7256c92b0b3cac203bf7c6749f0 (patch)
tree9f37e8399c77bd232bd80d3e678ccb9e452655a2 /test
parent084d0fb6351ed54ff4c052cff20f21e89063620c (diff)
downloadpuppet-7c500dac315ea7256c92b0b3cac203bf7c6749f0.tar.gz
puppet-7c500dac315ea7256c92b0b3cac203bf7c6749f0.tar.xz
puppet-7c500dac315ea7256c92b0b3cac203bf7c6749f0.zip
Stubbing Facter during the snippet tests, so they are faster and work with no network
Diffstat (limited to 'test')
-rwxr-xr-xtest/language/snippets.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/language/snippets.rb b/test/language/snippets.rb
index 2a4ba0220..def3d4cf9 100755
--- a/test/language/snippets.rb
+++ b/test/language/snippets.rb
@@ -15,6 +15,8 @@ class TestSnippets < Test::Unit::TestCase
def setup
super
@file = Puppet::Type.type(:file)
+ Facter.stubs(:to_hash).returns({})
+ Facter.stubs(:value).returns("whatever")
end
def self.snippetdir