summaryrefslogtreecommitdiffstats
path: root/spec/unit/application/puppet.rb
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2009-02-18 22:37:09 -0600
committerLuke Kanies <luke@madstop.com>2009-02-18 22:37:09 -0600
commit4a7cba3f2ed634c49bdfb2c3aba7153668c6afd0 (patch)
treeb88d01a09f1f48aad1a2f41ef1e8c5d2c6303c91 /spec/unit/application/puppet.rb
parent3105b5bb33639fb8a39234adfa84f354e7189785 (diff)
downloadpuppet-4a7cba3f2ed634c49bdfb2c3aba7153668c6afd0.tar.gz
puppet-4a7cba3f2ed634c49bdfb2c3aba7153668c6afd0.tar.xz
puppet-4a7cba3f2ed634c49bdfb2c3aba7153668c6afd0.zip
Stubbing tests that were affecting other tests
These stubs are all for global configuration state. It's a known problem that these have to be stubbed, but we haven't been able to find a design yet that fixes this. At least these tests are no longer breaking other tests. Signed-off-by: Luke Kanies <luke@madstop.com>
Diffstat (limited to 'spec/unit/application/puppet.rb')
-rw-r--r--spec/unit/application/puppet.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/unit/application/puppet.rb b/spec/unit/application/puppet.rb
index e7a6bb44a..df9aaa4e6 100644
--- a/spec/unit/application/puppet.rb
+++ b/spec/unit/application/puppet.rb
@@ -7,6 +7,8 @@ require 'puppet/application/puppet'
describe "Puppet" do
before :each do
@puppet = Puppet::Application[:puppet]
+ Puppet::Util::Log.stubs(:newdestination)
+ Puppet::Util::Log.stubs(:level=)
end
[:debug,:execute,:loadclasses,:verbose,:use_nodes,:detailed_exitcodes].each do |option|
@@ -290,4 +292,4 @@ describe "Puppet" do
end
end
-end \ No newline at end of file
+end