diff options
| author | James Turnbull <james@lovedthanlost.net> | 2010-11-15 19:41:43 +1100 |
|---|---|---|
| committer | Markus Roberts <Markus@reality.com> | 2010-11-16 10:54:22 -0800 |
| commit | c8b6fb5bed057bf25a25c9e1b3f55bedf64ba775 (patch) | |
| tree | b21dda185beaef1779cf579d9d48c6dd2d5a2067 /spec/unit/parser | |
| parent | d221c05e08627b9dffede6c56e210edca3b04c03 (diff) | |
| download | puppet-c8b6fb5bed057bf25a25c9e1b3f55bedf64ba775.tar.gz puppet-c8b6fb5bed057bf25a25c9e1b3f55bedf64ba775.tar.xz puppet-c8b6fb5bed057bf25a25c9e1b3f55bedf64ba775.zip | |
Fixed #5296 - test warnings messages
Diffstat (limited to 'spec/unit/parser')
| -rwxr-xr-x | spec/unit/parser/ast/leaf_spec.rb | 2 | ||||
| -rwxr-xr-x | spec/unit/parser/ast/resource_spec.rb | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/spec/unit/parser/ast/leaf_spec.rb b/spec/unit/parser/ast/leaf_spec.rb index 384ee08eb..a19c24115 100755 --- a/spec/unit/parser/ast/leaf_spec.rb +++ b/spec/unit/parser/ast/leaf_spec.rb @@ -49,7 +49,7 @@ describe Puppet::Parser::AST::String do end it "should return a dup of its value" do value = "" - Puppet::Parser::AST::String.new( :value => value ).evaluate(stub 'scope').should_not be_equal(value) + Puppet::Parser::AST::String.new( :value => value ).evaluate(stub('scope')).should_not be_equal(value) end end end diff --git a/spec/unit/parser/ast/resource_spec.rb b/spec/unit/parser/ast/resource_spec.rb index e1f73e161..721c31a8d 100755 --- a/spec/unit/parser/ast/resource_spec.rb +++ b/spec/unit/parser/ast/resource_spec.rb @@ -152,7 +152,7 @@ describe Puppet::Parser::AST::Resource do result = @resource.evaluate(@scope) result.length.should == 1 result.first.ref.should == "Class[Classname]" - @compiler.catalog.resource("Class[Classname]").should equal result.first + @compiler.catalog.resource("Class[Classname]").should equal(result.first) end it "should cause its parent to be evaluated" do @@ -163,7 +163,7 @@ describe Puppet::Parser::AST::Resource do result = @resource.evaluate(@scope) result.length.should == 1 result.first.ref.should == "Class[Classname]" - @compiler.catalog.resource("Class[Classname]").should equal result.first + @compiler.catalog.resource("Class[Classname]").should equal(result.first) @compiler.catalog.resource("Class[Parentname]").should be_instance_of(Puppet::Parser::Resource) end |
