summaryrefslogtreecommitdiffstats
path: root/spec/unit/parser/scope_spec.rb
diff options
context:
space:
mode:
authorNick Lewis <nick@puppetlabs.com>2010-06-28 16:11:24 -0700
committerNick Lewis <nick@puppetlabs.com>2010-06-28 16:11:24 -0700
commit2baf74e71d97f0e9917b088279cb0540e37c022c (patch)
tree36de06aab49735017766c0f8f37ce431072aa461 /spec/unit/parser/scope_spec.rb
parent2ab123f5a9ef045c0ea7acf109b5ea67fc9e5cf7 (diff)
downloadpuppet-2baf74e71d97f0e9917b088279cb0540e37c022c.tar.gz
puppet-2baf74e71d97f0e9917b088279cb0540e37c022c.tar.xz
puppet-2baf74e71d97f0e9917b088279cb0540e37c022c.zip
maint: Fixes some noisy specs
This change removes some irrelevant output (debugging information, warnings, etc) from a few specs.
Diffstat (limited to 'spec/unit/parser/scope_spec.rb')
-rwxr-xr-xspec/unit/parser/scope_spec.rb4
1 files changed, 2 insertions, 2 deletions
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