summaryrefslogtreecommitdiffstats
path: root/test/parser
diff options
context:
space:
mode:
authorluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2006-02-27 22:49:48 +0000
committerluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2006-02-27 22:49:48 +0000
commitc894eb20ddf812056e897217fd55d31182dbc52f (patch)
treef3c667aee1c80dbd8371b844970240b0e902ceaf /test/parser
parent020499c70a69786e24b0136427b87c8967d40690 (diff)
Fixing bug #75, providing support for unnecessary end commas.
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@954 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'test/parser')
-rw-r--r--test/parser/parser.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/parser/parser.rb b/test/parser/parser.rb
index e29057e06..b42c86021 100644
--- a/test/parser/parser.rb
+++ b/test/parser/parser.rb
@@ -194,6 +194,19 @@ class TestParser < Test::Unit::TestCase
}
}
end
+
+ def test_trailingcomma
+ path = tempfile()
+ str = %{file { "#{path}": ensure => file, }
+ }
+
+ parser = Puppet::Parser::Parser.new
+ parser.string = str
+
+ assert_nothing_raised("Could not parse trailing comma") {
+ parser.parse
+ }
+ end
end
# $Id$