diff options
| author | Jesse Wolfe <jes5199@gmail.com> | 2011-03-24 16:17:38 -0700 |
|---|---|---|
| committer | Jesse Wolfe <jes5199@gmail.com> | 2011-03-24 16:17:38 -0700 |
| commit | 0f3e537a127ff0a55e25e0eea4b7513529867df3 (patch) | |
| tree | 050535ebac19e2aac0a4bcf81767ffc4f17473cf /spec/unit/parser | |
| parent | 99201ff662e8d2b5e16815843df22cbcad3e2ec2 (diff) | |
| parent | 196294a73e32f5f1cd511a8c23006d23839c7e57 (diff) | |
Merge branch 'feature/2.6.next/4576' of https://github.com/bodepd/puppet into 2.6.next
Diffstat (limited to 'spec/unit/parser')
| -rwxr-xr-x | spec/unit/parser/compiler_spec.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/spec/unit/parser/compiler_spec.rb b/spec/unit/parser/compiler_spec.rb index 687f2ecb9..261cfdec1 100755 --- a/spec/unit/parser/compiler_spec.rb +++ b/spec/unit/parser/compiler_spec.rb @@ -581,12 +581,11 @@ describe Puppet::Parser::Compiler do @scope.expects(:find_hostclass).with("notfound").returns(nil) @compiler.evaluate_classes(%w{notfound}, @scope) end - # I wish it would fail it "should log when it can't find class" do klasses = {'foo'=>nil} @node.classes = klasses @compiler.topscope.stubs(:find_hostclass).with('foo').returns(nil) - Puppet.expects(:info).with('Could not find class foo for testnode') + Puppet.expects(:warning).with('Could not find class foo for testnode') @compiler.compile end end |
