summaryrefslogtreecommitdiffstats
path: root/spec/unit
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2009-08-01 16:29:26 -0700
committerJames Turnbull <james@lovedthanlost.net>2009-08-02 16:43:04 +1000
commit58d95872ce5afddc158ac4b229363c5f63859c5d (patch)
tree920b0d07de3668aeb866e6dca6624a61b701776b /spec/unit
parentd4d8372bf8174dfebcd6ae549710c9750b70bb30 (diff)
downloadpuppet-58d95872ce5afddc158ac4b229363c5f63859c5d.tar.gz
puppet-58d95872ce5afddc158ac4b229363c5f63859c5d.tar.xz
puppet-58d95872ce5afddc158ac4b229363c5f63859c5d.zip
Speeding a test up through stubbing
Signed-off-by: Luke Kanies <luke@madstop.com>
Diffstat (limited to 'spec/unit')
-rwxr-xr-xspec/unit/configurer.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/unit/configurer.rb b/spec/unit/configurer.rb
index 95d205d56..9cf22c80c 100755
--- a/spec/unit/configurer.rb
+++ b/spec/unit/configurer.rb
@@ -26,6 +26,7 @@ describe Puppet::Configurer, "when executing a catalog run" do
Puppet.settings.stubs(:use).returns(true)
@agent = Puppet::Configurer.new
@agent.stubs(:facts_for_uploading).returns({})
+ @agent.stubs(:retrieve_catalog).returns Puppet::Resource::Catalog.new
end
it "should prepare for the run" do