summaryrefslogtreecommitdiffstats
path: root/spec/unit/application/puppetmasterd.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/puppetmasterd.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/puppetmasterd.rb')
-rw-r--r--spec/unit/application/puppetmasterd.rb11
1 files changed, 10 insertions, 1 deletions
diff --git a/spec/unit/application/puppetmasterd.rb b/spec/unit/application/puppetmasterd.rb
index 606617d9e..da1b1dd1c 100644
--- a/spec/unit/application/puppetmasterd.rb
+++ b/spec/unit/application/puppetmasterd.rb
@@ -9,6 +9,15 @@ describe "PuppetMaster" do
@puppetmasterd = Puppet::Application[:puppetmasterd]
@daemon = stub_everything 'daemon'
Puppet::Daemon.stubs(:new).returns(@daemon)
+ Puppet::Util::Log.stubs(:newdestination)
+ Puppet::Util::Log.stubs(:level=)
+
+ Puppet::Node.stubs(:terminus_class=)
+ Puppet::Node.stubs(:cache_class=)
+ Puppet::Node::Facts.stubs(:terminus_class=)
+ Puppet::Node::Facts.stubs(:cache_class=)
+ Puppet::Transaction::Report.stubs(:terminus_class=)
+ Puppet::Resource::Catalog.stubs(:terminus_class=)
end
it "should ask Puppet::Application to parse Puppet configuration file" do
@@ -325,4 +334,4 @@ describe "PuppetMaster" do
end
end
-end \ No newline at end of file
+end