summaryrefslogtreecommitdiffstats
path: root/test/language/snippets.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/language/snippets.rb')
-rwxr-xr-xtest/language/snippets.rb9
1 files changed, 8 insertions, 1 deletions
diff --git a/test/language/snippets.rb b/test/language/snippets.rb
index 05ac066eb..f2597c8d0 100755
--- a/test/language/snippets.rb
+++ b/test/language/snippets.rb
@@ -12,7 +12,7 @@ class TestSnippets < Test::Unit::TestCase
include ObjectSpace
def self.snippetdir
- PuppetTest.exampledir "code", "snippets"
+ PuppetTest.datadir "snippets"
end
def snippet(name)
@@ -464,6 +464,13 @@ class TestSnippets < Test::Unit::TestCase
@@tmpfiles << "/tmp/emptyexextest"
end
+ def snippet_multisubs(trans)
+ path = "/tmp/multisubtest"
+ assert(FileTest.exists?(path), "Did not create file")
+ assert_equal("sub2", File.read(path), "sub2 did not override content")
+ assert_equal(0755, filemode(path), "sub1 did not override mode")
+ end
+
def disabled_snippet_dirchmod(trans)
dirs = %w{a b}.collect { |letter|
"/tmp/dirchmodtest%s" % letter