diff options
| author | Markus Roberts <Markus@reality.com> | 2010-06-28 16:28:44 -0700 |
|---|---|---|
| committer | Markus Roberts <Markus@reality.com> | 2010-06-28 16:28:44 -0700 |
| commit | 85638cf427fe9b35d3e3b0fa4ce919c5806c60d3 (patch) | |
| tree | dbe2b042d55734d3a3049f632ddcc732f6bf561e /spec/unit/parser | |
| parent | 06dffc104a57e97ac5a4a8d00747354750642526 (diff) | |
| parent | ef40a56e1e13d4790292fdf202365e641ed6df2f (diff) | |
| download | puppet-85638cf427fe9b35d3e3b0fa4ce919c5806c60d3.tar.gz puppet-85638cf427fe9b35d3e3b0fa4ce919c5806c60d3.tar.xz puppet-85638cf427fe9b35d3e3b0fa4ce919c5806c60d3.zip | |
Merge branch 'testing' into tweak/testing/file_fix_root_spec_failure
Diffstat (limited to 'spec/unit/parser')
| -rw-r--r-- | spec/unit/parser/ast/in_operator_spec.rb | 4 | ||||
| -rwxr-xr-x | spec/unit/parser/scope_spec.rb | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/spec/unit/parser/ast/in_operator_spec.rb b/spec/unit/parser/ast/in_operator_spec.rb index df73645a2..9d3cab712 100644 --- a/spec/unit/parser/ast/in_operator_spec.rb +++ b/spec/unit/parser/ast/in_operator_spec.rb @@ -36,13 +36,13 @@ describe Puppet::Parser::AST::InOperator do end it "should raise an argument error if rval doesn't support the include? method" do - @rval.expects(:safeevaluate).with(@scope).returns(stub 'value') + @rval.expects(:safeevaluate).with(@scope).returns(stub('value')) lambda { @operator.evaluate(@scope) }.should raise_error end it "should not raise an argument error if rval supports the include? method" do - @rval.expects(:safeevaluate).with(@scope).returns(stub 'value', :include? => true) + @rval.expects(:safeevaluate).with(@scope).returns(stub('value', :include? => true)) lambda { @operator.evaluate(@scope) }.should_not raise_error end diff --git a/spec/unit/parser/scope_spec.rb b/spec/unit/parser/scope_spec.rb index 37cf4bd8d..29dca38f4 100755 --- a/spec/unit/parser/scope_spec.rb +++ b/spec/unit/parser/scope_spec.rb @@ -63,7 +63,7 @@ describe Puppet::Parser::Scope do Puppet::Parser::Functions.expects(:environment_module).with(Puppet::Node::Environment.root).returns root_mod Puppet::Parser::Functions.expects(:environment_module).with(env).returns mod - Puppet::Parser::Scope.new(:compiler => compiler).metaclass.ancestors.should be_include(mod) + Puppet::Parser::Scope.new(:compiler => compiler).singleton_class.ancestors.should be_include(mod) end it "should extend itself with the default Functions module if it has no environment" do @@ -72,7 +72,7 @@ describe Puppet::Parser::Scope do Puppet::Parser::Functions.expects(:environment_module).with(nil).returns mod - Puppet::Parser::Scope.new().metaclass.ancestors.should be_include(mod) + Puppet::Parser::Scope.new().singleton_class.ancestors.should be_include(mod) end end |
