diff options
Diffstat (limited to 'spec/unit/parser/parser_spec.rb')
-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 |