summaryrefslogtreecommitdiff
path: root/spec/unit/functions4_spec.rb
diff options
context:
space:
mode:
authorStig Sandbeck Mathisen <ssm@debian.org>2014-09-07 10:14:36 +0200
committerStig Sandbeck Mathisen <ssm@debian.org>2014-09-07 10:14:36 +0200
commitd4b83be375ac1dead058e091191ee7c7b7c24c8a (patch)
treedc825687392ae3068de5b764be60c53122d9e02a /spec/unit/functions4_spec.rb
parent229cbb976fe0f70f5f30548b83517b415840f9bb (diff)
parent1681684857c6e39d60d87b0b3520d8783977ceff (diff)
downloadpuppet-upstream/3.7.0.tar.gz
Imported Upstream version 3.7.0upstream/3.7.0
Diffstat (limited to 'spec/unit/functions4_spec.rb')
-rw-r--r--spec/unit/functions4_spec.rb15
1 files changed, 7 insertions, 8 deletions
diff --git a/spec/unit/functions4_spec.rb b/spec/unit/functions4_spec.rb
index a5404cc1e..6c31b75c2 100644
--- a/spec/unit/functions4_spec.rb
+++ b/spec/unit/functions4_spec.rb
@@ -83,9 +83,9 @@ actual:
func = f.new(:closure_scope, :loader)
expect(func.is_a?(Puppet::Functions::Function)).to be_true
signature = if RUBY_VERSION =~ /^1\.8/
- 'Object{2}'
+ 'Any{2}'
else
- 'Object x, Object y'
+ 'Any x, Any y'
end
expect do
func.call({}, 10)
@@ -102,9 +102,9 @@ actual:
func = f.new(:closure_scope, :loader)
expect(func.is_a?(Puppet::Functions::Function)).to be_true
signature = if RUBY_VERSION =~ /^1\.8/
- 'Object{2}'
+ 'Any{2}'
else
- 'Object x, Object y'
+ 'Any x, Any y'
end
expect do
func.call({}, 10, 10, 10)
@@ -162,9 +162,9 @@ actual:
func = f.new(:closure_scope, :loader)
expect(func.is_a?(Puppet::Functions::Function)).to be_true
signature = if RUBY_VERSION =~ /^1\.8/
- 'Object{2,}'
+ 'Any{2,}'
else
- 'Object x, Object y, Object a?, Object b?, Object c{0,}'
+ 'Any x, Any y, Any a?, Any b?, Any c{0,}'
end
expect do
func.call({}, 10)
@@ -439,12 +439,11 @@ actual:
# about selection of parser and evaluator
#
Puppet[:parser] = 'future'
- Puppet[:evaluator] = 'future'
# Puppetx cannot be loaded until the correct parser has been set (injector is turned off otherwise)
require 'puppetx'
end
- let(:parser) { Puppet::Pops::Parser::EvaluatingParser::Transitional.new }
+ let(:parser) { Puppet::Pops::Parser::EvaluatingParser.new }
let(:node) { 'node.example.com' }
let(:scope) { s = create_test_scope_for_node(node); s }