summaryrefslogtreecommitdiffstats
path: root/spec/unit/configurer.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/unit/configurer.rb')
-rwxr-xr-xspec/unit/configurer.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/unit/configurer.rb b/spec/unit/configurer.rb
index 9cf22c80c..85bdb9dac 100755
--- a/spec/unit/configurer.rb
+++ b/spec/unit/configurer.rb
@@ -57,6 +57,14 @@ describe Puppet::Configurer, "when executing a catalog run" do
@agent.run :one => true
end
+ it "should accept a catalog and use it instead of retrieving a different one" do
+ catalog = stub 'catalog', :retrieval_duration= => nil
+ @agent.expects(:retrieve_catalog).never
+
+ catalog.expects(:apply).with(:one => true)
+ @agent.run :one => true, :catalog => catalog
+ end
+
it "should benchmark how long it takes to apply the catalog" do
@agent.expects(:benchmark).with(:notice, "Finished catalog run")