summaryrefslogtreecommitdiffstats
path: root/spec/integration/parser/parser_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/integration/parser/parser_spec.rb')
-rwxr-xr-xspec/integration/parser/parser_spec.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/spec/integration/parser/parser_spec.rb b/spec/integration/parser/parser_spec.rb
index ec084b441..b7dfcc3e0 100755
--- a/spec/integration/parser/parser_spec.rb
+++ b/spec/integration/parser/parser_spec.rb
@@ -111,5 +111,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