diff options
| author | Brice Figureau <brice-puppet@daysofwonder.com> | 2008-10-16 22:02:37 +0200 |
|---|---|---|
| committer | James Turnbull <james@lovedthanlost.net> | 2008-10-21 21:15:53 +1100 |
| commit | 6d05cbc1e1a22d4316e18fb22d5cff9c7a42d3cf (patch) | |
| tree | f0e7be01442451f10574e9499268c2012be81988 /spec/unit/parser/parser.rb | |
| parent | ec2b4619d3c90b09e1b9fda0020552d5a2d6061f (diff) | |
| download | puppet-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 'spec/unit/parser/parser.rb')
| -rwxr-xr-x | spec/unit/parser/parser.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/unit/parser/parser.rb b/spec/unit/parser/parser.rb index 6ede8e6d1..07aad588d 100755 --- a/spec/unit/parser/parser.rb +++ b/spec/unit/parser/parser.rb @@ -162,6 +162,14 @@ describe Puppet::Parser do it "should not raise errors with multiple arguments and a trailing comma" do lambda { @parser.parse("notice(1,2,)") }.should_not raise_error + end + + end + + describe Puppet::Parser, "when parsing arrays with trailing comma" do + + it "should not raise errors with a trailing comma" do + lambda { @parser.parse("$a = [1,2,]") }.should_not raise_error end end |
