[Pkg-puppet-devel] [facter] 221/352: (fact-273) Add expectation for Facter.warn on resolutions that throw an exception
Stig Sandbeck Mathisen
ssm at debian.org
Sun Apr 6 22:21:47 UTC 2014
This is an automated email from the git hooks/post-receive script.
ssm pushed a commit to branch master
in repository facter.
commit c57c7dcf3a16d295c776b64c31e65cf6699d717f
Author: Kylo Ginsberg <kylo at puppetlabs.com>
Date: Wed Feb 5 15:30:34 2014 -0800
(fact-273) Add expectation for Facter.warn on resolutions that throw an exception
---
spec/unit/util/collection_spec.rb | 1 +
1 file changed, 1 insertion(+)
diff --git a/spec/unit/util/collection_spec.rb b/spec/unit/util/collection_spec.rb
index 4414978..3a80613 100755
--- a/spec/unit/util/collection_spec.rb
+++ b/spec/unit/util/collection_spec.rb
@@ -56,6 +56,7 @@ describe Facter::Util::Collection do
end
it "should discard resolutions that throw an exception when added" do
+ Facter.expects(:warn).with("Unable to add resolve for yay: ")
lambda {
collection.add('yay') do
raise
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-puppet/facter.git
More information about the Pkg-puppet-devel
mailing list