summaryrefslogtreecommitdiffstats
path: root/test/language/functions.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/language/functions.rb')
-rwxr-xr-xtest/language/functions.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/language/functions.rb b/test/language/functions.rb
index bd7143db6..b69c2bfa2 100755
--- a/test/language/functions.rb
+++ b/test/language/functions.rb
@@ -23,7 +23,7 @@ class TestLangFunctions < Test::Unit::TestCase
end
assert_nothing_raised do
- Puppet::Parser::Functions.newfunction(:fakefunction, :rvalue) do |input|
+ Puppet::Parser::Functions.newfunction(:fakefunction, :type => :rvalue) do |input|
return "output %s" % input[0]
end
end
@@ -289,7 +289,7 @@ class TestLangFunctions < Test::Unit::TestCase
File.open(File.join(newpath, "autofunc.rb"), "w") { |f|
f.puts %{
- Puppet::Parser::Functions.newfunction(:autofunc, :rvalue) do |vals|
+ Puppet::Parser::Functions.newfunction(:autofunc, :type => :rvalue) do |vals|
Puppet.wanring vals.inspect
end
}