diff options
author | Brice Figureau <brice-puppet@daysofwonder.com> | 2008-10-16 20:24:30 +0200 |
---|---|---|
committer | James Turnbull <james@lovedthanlost.net> | 2008-10-21 09:32:28 +1100 |
commit | e6f99f92ec5bfba973a3f13c629a8ce263a0da7d (patch) | |
tree | 631bd56718c635f80d9f608bfd52cfbda914b63f /test | |
parent | a74ec60d33dee1c592ec858faeccc23d7a7b79f3 (diff) | |
download | puppet-e6f99f92ec5bfba973a3f13c629a8ce263a0da7d.tar.gz puppet-e6f99f92ec5bfba973a3f13c629a8ce263a0da7d.tar.xz puppet-e6f99f92ec5bfba973a3f13c629a8ce263a0da7d.zip |
Fix #636 - Allow extraneous comma in function argument list
Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
Diffstat (limited to 'test')
-rw-r--r-- | test/data/snippets/funccomma.pp | 5 | ||||
-rwxr-xr-x | test/language/snippets.rb | 7 |
2 files changed, 12 insertions, 0 deletions
diff --git a/test/data/snippets/funccomma.pp b/test/data/snippets/funccomma.pp new file mode 100644 index 000000000..32e34f92e --- /dev/null +++ b/test/data/snippets/funccomma.pp @@ -0,0 +1,5 @@ +@file { + ["/tmp/funccomma1","/tmp/funccomma2"]: content => "1" +} + +realize( File["/tmp/funccomma1"], File["/tmp/funccomma2"] , ) diff --git a/test/language/snippets.rb b/test/language/snippets.rb index 982ddfec4..5ea436d40 100755 --- a/test/language/snippets.rb +++ b/test/language/snippets.rb @@ -446,6 +446,13 @@ class TestSnippets < Test::Unit::TestCase "Did not make second file from duplicate subclass names") end + def snippet_funccomma + assert_file("/tmp/funccomma1", + "Did not make first file from trailing function comma") + assert_file("/tmp/funccomma2", + "Did not make second file from trailing function comma") + end + # Iterate across each of the snippets and create a test. Dir.entries(snippetdir).sort.each { |file| next if file =~ /^\./ |