summaryrefslogtreecommitdiffstats
path: root/spec/unit/network
diff options
context:
space:
mode:
authorJames Turnbull <james@lovedthanlost.net>2010-04-24 02:47:52 +1000
committertest branch <puppet-dev@googlegroups.com>2010-02-17 06:50:53 -0800
commitf3e466b68ba124c1313d84570584187a7c473eb5 (patch)
treebfedbc65ef56465aea7454d44c9a52384d3b0179 /spec/unit/network
parent686239ff01297b526c6f8dacd2a2e12b1738f0a9 (diff)
downloadpuppet-f3e466b68ba124c1313d84570584187a7c473eb5.tar.gz
puppet-f3e466b68ba124c1313d84570584187a7c473eb5.tar.xz
puppet-f3e466b68ba124c1313d84570584187a7c473eb5.zip
Partial fix to #2837 - changed warning message to debug
Diffstat (limited to 'spec/unit/network')
-rwxr-xr-xspec/unit/network/format_handler.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/spec/unit/network/format_handler.rb b/spec/unit/network/format_handler.rb
index f379e5cce..622f7e5a1 100755
--- a/spec/unit/network/format_handler.rb
+++ b/spec/unit/network/format_handler.rb
@@ -73,8 +73,9 @@ describe Puppet::Network::FormatHandler do
it "should still return the default format first" do
FormatTester.supported_formats.should == [:two, :one]
end
- it "should log a warning" do
- Puppet.expects(:warning)
+ it "should log a debug message" do
+ Puppet.expects(:debug).with("Value of 'preferred_serialization_format' (unsupported) is invalid for FormatTester, using default (two)")
+ Puppet.expects(:debug).with("FormatTester supports formats: one two; using two")
FormatTester.supported_formats
end
end