diff options
| author | James Turnbull <james@lovedthanlost.net> | 2010-04-24 02:47:52 +1000 |
|---|---|---|
| committer | James Turnbull <james@lovedthanlost.net> | 2010-04-24 02:47:52 +1000 |
| commit | 44f6d64876f60cbed27e79ba0c64377ebcb9a07e (patch) | |
| tree | d32f26eebc99312ca6941d3b405f3c13d85a277f /spec/unit | |
| parent | 3a1b178e9622494088473042336e45d59f896dac (diff) | |
Partial fix to #2837 - changed warning message to debug
Diffstat (limited to 'spec/unit')
| -rwxr-xr-x | spec/unit/network/format_handler.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/spec/unit/network/format_handler.rb b/spec/unit/network/format_handler.rb index 110effe09..7fb065b5c 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 |
