summaryrefslogtreecommitdiffstats
path: root/test/language/snippets.rb
diff options
context:
space:
mode:
authorBrice Figureau <brice-puppet@daysofwonder.com>2008-10-16 22:02:37 +0200
committerJames Turnbull <james@lovedthanlost.net>2008-10-21 21:15:53 +1100
commit6d05cbc1e1a22d4316e18fb22d5cff9c7a42d3cf (patch)
treef0e7be01442451f10574e9499268c2012be81988 /test/language/snippets.rb
parentec2b4619d3c90b09e1b9fda0020552d5a2d6061f (diff)
downloadpuppet-6d05cbc1e1a22d4316e18fb22d5cff9c7a42d3cf.tar.gz
puppet-6d05cbc1e1a22d4316e18fb22d5cff9c7a42d3cf.tar.xz
puppet-6d05cbc1e1a22d4316e18fb22d5cff9c7a42d3cf.zip
Fix #936 - Allow trailing comma in array definition
Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
Diffstat (limited to 'test/language/snippets.rb')
-rwxr-xr-xtest/language/snippets.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/language/snippets.rb b/test/language/snippets.rb
index 5ea436d40..ebc977388 100755
--- a/test/language/snippets.rb
+++ b/test/language/snippets.rb
@@ -453,6 +453,13 @@ class TestSnippets < Test::Unit::TestCase
"Did not make second file from trailing function comma")
end
+ def snippet_arraytrailingcomma
+ assert_file("/tmp/arraytrailingcomma1",
+ "Did not make first file from array")
+ assert_file("/tmp/arraytrailingcomma2",
+ "Did not make second file from array")
+ end
+
# Iterate across each of the snippets and create a test.
Dir.entries(snippetdir).sort.each { |file|
next if file =~ /^\./