diff options
author | Jesse Wolfe <jes5199@gmail.com> | 2010-06-30 17:20:37 -0700 |
---|---|---|
committer | Markus Roberts <Markus@reality.com> | 2010-07-01 13:48:14 -0700 |
commit | 59bf5e4c1be5eb70b6f6cfe3e725e9763ec79ece (patch) | |
tree | d0ceae9a7357a73607d9db318752b890bd9070b1 /spec/unit | |
parent | ebd03113d2c4024a7db603e73ca9f5dab34034c8 (diff) | |
download | puppet-59bf5e4c1be5eb70b6f6cfe3e725e9763ec79ece.tar.gz puppet-59bf5e4c1be5eb70b6f6cfe3e725e9763ec79ece.tar.xz puppet-59bf5e4c1be5eb70b6f6cfe3e725e9763ec79ece.zip |
[#2713] Enable ELSIF
Diffstat (limited to 'spec/unit')
-rwxr-xr-x | spec/unit/parser/parser_spec.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/unit/parser/parser_spec.rb b/spec/unit/parser/parser_spec.rb index ed4492a87..2cbb80f9b 100755 --- a/spec/unit/parser/parser_spec.rb +++ b/spec/unit/parser/parser_spec.rb @@ -192,6 +192,12 @@ describe Puppet::Parser do @parser.parse("if true { notice('test') } else { }") end + it "should build a chain of 'ifs' if there's an 'elsif'" do + ast = @parser.parse(<<-PP) + if true { notice('test') } elsif true {} else { } + PP + end + end describe "when parsing function calls" do |