summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2007-01-30 18:18:12 +0000
committerluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2007-01-30 18:18:12 +0000
commita7bd7863fe67e2441013c8c26bcc112d76650dcd (patch)
tree9a9700e0a6ec8ca1b425ae511fdfed7f37b88e75 /test
parentc9e7699c2e98eb9622a6dfca2be1442aeb51dfd3 (diff)
downloadpuppet-a7bd7863fe67e2441013c8c26bcc112d76650dcd.tar.gz
puppet-a7bd7863fe67e2441013c8c26bcc112d76650dcd.tar.xz
puppet-a7bd7863fe67e2441013c8c26bcc112d76650dcd.zip
Partially fixing #460 -- fully-qualified class names can be used as parent classes.
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2126 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'test')
-rwxr-xr-xtest/language/parser.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/language/parser.rb b/test/language/parser.rb
index bb07d55e8..2386a205b 100755
--- a/test/language/parser.rb
+++ b/test/language/parser.rb
@@ -398,6 +398,14 @@ file { "/tmp/yayness":
sub = interp.findclass("", "container::deep::sub")
assert(sub, "Could not find sub")
assert_equal("base", sub.parentclass.type)
+
+ # Now try it with a parent class being a fq class
+ assert_nothing_raised {
+ parser.parse "class container::one inherits container::deep::sub {}"
+ }
+ sub = interp.findclass("", "container::one")
+ assert(sub, "Could not find one")
+ assert_equal("sub", sub.parentclass.type)
end
def test_topnamespace