[Pkg-puppet-devel] [facter] 217/352: (fact-273) Add expectation for Facter.warn on ignored file extensions

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 b67894bce5110bf2012b245b6c016fc67d7374a1
Author: Kylo Ginsberg <kylo at puppetlabs.com>
Date:   Wed Feb 5 14:39:36 2014 -0800

    (fact-273) Add expectation for Facter.warn on ignored file extensions
---
 spec/unit/util/directory_loader_spec.rb | 1 +
 1 file changed, 1 insertion(+)

diff --git a/spec/unit/util/directory_loader_spec.rb b/spec/unit/util/directory_loader_spec.rb
index 79ad2b2..db99d15 100644
--- a/spec/unit/util/directory_loader_spec.rb
+++ b/spec/unit/util/directory_loader_spec.rb
@@ -55,6 +55,7 @@ describe Facter::Util::DirectoryLoader do
 
     %w{bak orig}.each do |ext|
       it "should ignore files with an extension of '#{ext}'" do
+        Facter.expects(:warn).with(regexp_matches(/#{ext}/))
         write_to_file("data" + ".#{ext}", "foo=bar")
 
         subject.load(collection)

-- 
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