diff options
| author | Luke Kanies <luke@madstop.com> | 2008-02-08 11:41:22 -0600 |
|---|---|---|
| committer | Luke Kanies <luke@madstop.com> | 2008-02-08 11:41:22 -0600 |
| commit | 7c500dac315ea7256c92b0b3cac203bf7c6749f0 (patch) | |
| tree | 9f37e8399c77bd232bd80d3e678ccb9e452655a2 /test/language | |
| parent | 084d0fb6351ed54ff4c052cff20f21e89063620c (diff) | |
| download | puppet-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/language')
| -rwxr-xr-x | test/language/snippets.rb | 2 |
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 |
