diff options
| author | Daniel Pittman <daniel@rimspace.net> | 2011-02-12 15:51:30 -0800 |
|---|---|---|
| committer | Daniel Pittman <daniel@rimspace.net> | 2011-02-12 15:51:30 -0800 |
| commit | a0d320439c72f7b7969cd51b33a8db141eb9a599 (patch) | |
| tree | e13fe264ee0cb2f4e5fdc8dbafae3f3773d17d5e /spec/integration/parser/parser_spec.rb | |
| parent | 98f79dc2e44502bf781dbce180762b892859d4e1 (diff) | |
| parent | c373b6272ddd4daabf15d1b459ef3e86072e3f26 (diff) | |
| download | puppet-a0d320439c72f7b7969cd51b33a8db141eb9a599.tar.gz puppet-a0d320439c72f7b7969cd51b33a8db141eb9a599.tar.xz puppet-a0d320439c72f7b7969cd51b33a8db141eb9a599.zip | |
(Fixes #6269) merge changes from masterzen that resolve the issue.
parser.rb manually rebuilt to resolve global grammer chances.
Diffstat (limited to 'spec/integration/parser/parser_spec.rb')
| -rwxr-xr-x | spec/integration/parser/parser_spec.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/spec/integration/parser/parser_spec.rb b/spec/integration/parser/parser_spec.rb index 7b85bcacb..20d87c228 100755 --- a/spec/integration/parser/parser_spec.rb +++ b/spec/integration/parser/parser_spec.rb @@ -109,5 +109,12 @@ describe Puppet::Parser::Parser do it "should correctly set the arrow type of a relationship" do "Notify[foo] <~ Notify[bar]".should parse_with { |rel| rel.arrow == "<~" } end + + it "should be able to parse deep hash access" do + %q{ + $hash = { 'a' => { 'b' => { 'c' => 'it works' } } } + $out = $hash['a']['b']['c'] + }.should parse_with { |v| v.value.is_a?(Puppet::Parser::AST::ASTHash) } + end end end |
