summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2006-01-18 17:24:15 +0000
committerluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2006-01-18 17:24:15 +0000
commit6bab167dcbb274fd302a65d567d6af0ef6621b79 (patch)
tree92093e971bab20400ac8218a5cf1b159e64b5cbb /test
parented39be9dd2ecdbe9a8624ed2f6c03334e123e81d (diff)
Made lots of small changes, mostly to help usability but also fixed a couple of key bugs
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@841 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'test')
-rwxr-xr-xtest/language/snippets.rb12
-rw-r--r--test/types/file.rb3
2 files changed, 15 insertions, 0 deletions
diff --git a/test/language/snippets.rb b/test/language/snippets.rb
index 7ca896ef4..413fd1035 100755
--- a/test/language/snippets.rb
+++ b/test/language/snippets.rb
@@ -370,6 +370,14 @@ class TestSnippets < Test::Unit::TestCase
}
end
+ def snippet_singleary(trans)
+ [1,2,3,4].each { |num|
+ file = "/tmp/singleary%s" % num
+ @@tmpfiles << file
+ assert(FileTest.file?(file), "File %s does not exist" % file)
+ }
+ end
+
def snippet_classincludes(trans)
[1,2,3].each { |num|
file = "/tmp/classincludes%s" % num
@@ -380,6 +388,10 @@ class TestSnippets < Test::Unit::TestCase
}
end
+ def snippet_emptyclass(trans)
+ # There's nothing to check other than that it works
+ end
+
def disabled_snippet_dirchmod(trans)
dirs = %w{a b}.collect { |letter|
"/tmp/dirchmodtest%s" % letter
diff --git a/test/types/file.rb b/test/types/file.rb
index b9e85839e..9201a6914 100644
--- a/test/types/file.rb
+++ b/test/types/file.rb
@@ -273,6 +273,9 @@ class TestFile < Test::Unit::TestCase
end
def test_checksums
+ end
+
+ def test_checksums
types = %w{md5 md5lite timestamp time}
exists = "/tmp/sumtest-exists"
nonexists = "/tmp/sumtest-nonexists"