summaryrefslogtreecommitdiffstats
path: root/test/language/snippets.rb
diff options
context:
space:
mode:
authorluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2007-01-30 18:39:21 +0000
committerluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2007-01-30 18:39:21 +0000
commit788a74e80c6af40ca2a0d162c5445a0aa0ba866a (patch)
tree838c639dbc1af81c7ca90cf78d558d64f6cae2fe /test/language/snippets.rb
parenta7bd7863fe67e2441013c8c26bcc112d76650dcd (diff)
downloadpuppet-788a74e80c6af40ca2a0d162c5445a0aa0ba866a.tar.gz
puppet-788a74e80c6af40ca2a0d162c5445a0aa0ba866a.tar.xz
puppet-788a74e80c6af40ca2a0d162c5445a0aa0ba866a.zip
Partially fixing #460, take 2 -- fully-qualified definitions can now be used.
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2127 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'test/language/snippets.rb')
-rwxr-xr-xtest/language/snippets.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/language/snippets.rb b/test/language/snippets.rb
index 1ed533fec..c82a124bd 100755
--- a/test/language/snippets.rb
+++ b/test/language/snippets.rb
@@ -454,6 +454,18 @@ class TestSnippets < Test::Unit::TestCase
"Did not make file from realized file inside defined type")
end
+ def snippet_fqparents
+ assert(FileTest.exists?("/tmp/fqparent1"),
+ "Did not make file from parent class")
+ assert(FileTest.exists?("/tmp/fqparent2"),
+ "Did not make file from subclass")
+ end
+
+ def snippet_fqdefinition
+ assert(FileTest.exists?("/tmp/fqdefinition"),
+ "Did not make file from fully-qualified definition")
+ end
+
def snippet_dirchmod
dirs = %w{a b}.collect { |letter|
"/tmp/dirchmodtest%s" % letter