summaryrefslogtreecommitdiffstats
path: root/spec/unit/configurer_spec.rb
diff options
context:
space:
mode:
authorJesse Wolfe <jes5199@gmail.com>2010-12-10 12:49:59 -0800
committerJesse Wolfe <jes5199@gmail.com>2010-12-10 14:29:55 -0800
commit52fba89d3415bdb6e7f10640ac059f295ea7cadf (patch)
tree590d04726990ef625bc65d710cd23541cf70ed92 /spec/unit/configurer_spec.rb
parent8c134b697d2c30128f51cd69e47808a051b96b72 (diff)
downloadpuppet-52fba89d3415bdb6e7f10640ac059f295ea7cadf.tar.gz
puppet-52fba89d3415bdb6e7f10640ac059f295ea7cadf.tar.xz
puppet-52fba89d3415bdb6e7f10640ac059f295ea7cadf.zip
maint: test was expecting Catalog.find too few times
Our code calls Catalog.find multiple times, but this stub did not allow that. The resulting error was silently ignored on versions of Mocha before 0.9.10 Paired-With: Nick Lewis <nick@puppetlabs.com>
Diffstat (limited to 'spec/unit/configurer_spec.rb')
-rwxr-xr-xspec/unit/configurer_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/unit/configurer_spec.rb b/spec/unit/configurer_spec.rb
index 0c9d06362..ebc5768ea 100755
--- a/spec/unit/configurer_spec.rb
+++ b/spec/unit/configurer_spec.rb
@@ -418,7 +418,7 @@ describe Puppet::Configurer, "when retrieving a catalog" do
end
it "should return nil if there is an error while retrieving the catalog" do
- Puppet::Resource::Catalog.expects(:find).raises "eh"
+ Puppet::Resource::Catalog.expects(:find).at_least_once.raises "eh"
@agent.retrieve_catalog.should be_nil
end