summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorBrice Figureau <brice-puppet@daysofwonder.com>2008-11-29 17:41:45 +0100
committerJames Turnbull <james@lovedthanlost.net>2009-03-14 11:31:29 +1100
commitaf4455e31df403c55a5db06ee8d0d4e0e58c4154 (patch)
tree0e70a34d11dbd02f0fef297e64d66d1d2dc7efc2 /test
parentb15028f55ba608a701efae1ee392d50374b2be54 (diff)
downloadpuppet-af4455e31df403c55a5db06ee8d0d4e0e58c4154.tar.gz
puppet-af4455e31df403c55a5db06ee8d0d4e0e58c4154.tar.xz
puppet-af4455e31df403c55a5db06ee8d0d4e0e58c4154.zip
Fix #1088 - part2 - Add rspec tests
Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
Diffstat (limited to 'test')
-rw-r--r--test/data/snippets/collection_override.pp8
-rwxr-xr-xtest/language/snippets.rb6
2 files changed, 14 insertions, 0 deletions
diff --git a/test/data/snippets/collection_override.pp b/test/data/snippets/collection_override.pp
new file mode 100644
index 000000000..b1b39ab16
--- /dev/null
+++ b/test/data/snippets/collection_override.pp
@@ -0,0 +1,8 @@
+@file {
+ "/tmp/collection":
+ content => "whatever"
+}
+
+File<| |> {
+ mode => 0600
+}
diff --git a/test/language/snippets.rb b/test/language/snippets.rb
index dfd4950e7..eac852ed0 100755
--- a/test/language/snippets.rb
+++ b/test/language/snippets.rb
@@ -475,6 +475,12 @@ class TestSnippets < Test::Unit::TestCase
assert_not_file("/tmp/multilinecomments","Did create a commented resource");
end
+ def snippet_collection_override
+ path = "/tmp/collection"
+ assert_file(path)
+ assert_mode_equal(0600, path)
+ end
+
# Iterate across each of the snippets and create a test.
Dir.entries(snippetdir).sort.each { |file|
next if file =~ /^\./