diff options
| author | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2006-05-13 20:01:12 +0000 |
|---|---|---|
| committer | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2006-05-13 20:01:12 +0000 |
| commit | 637cc71296f96fd1d5f2ca83aa7e20c73757f8dd (patch) | |
| tree | f3b055bf75d7df6cbabafb24334710071f2ef8ec /test/language/parser.rb | |
| parent | 9e9ef1acc6231254e52b96257ed1e81475d2d1bc (diff) | |
| download | puppet-637cc71296f96fd1d5f2ca83aa7e20c73757f8dd.tar.gz puppet-637cc71296f96fd1d5f2ca83aa7e20c73757f8dd.tar.xz puppet-637cc71296f96fd1d5f2ca83aa7e20c73757f8dd.zip | |
I appear to have object collection working, incredibly. This commit does the collection from the database up to adding the objects to the current scope, which is what sends it to the client.
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1190 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'test/language/parser.rb')
| -rw-r--r-- | test/language/parser.rb | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/test/language/parser.rb b/test/language/parser.rb index e1b6598d4..848f0128e 100644 --- a/test/language/parser.rb +++ b/test/language/parser.rb @@ -335,6 +335,25 @@ class TestParser < Test::Unit::TestCase parser.parse } end + + # Verify that we can parse collections + def test_collecting + Puppet[:storeconfigs] = true + text = "port <| |>" + parser = Puppet::Parser::Parser.new + parser.string = text + + ret = nil + assert_nothing_raised { + ret = parser.parse + } + + assert_instance_of(AST::ASTArray, ret) + + ret.each do |obj| + assert_instance_of(AST::Collection, obj) + end + end end # $Id$ |
