summaryrefslogtreecommitdiffstats
path: root/test/data
diff options
context:
space:
mode:
authorBrice Figureau <brice-puppet@daysofwonder.com>2008-09-20 14:14:44 +0200
committerJames Turnbull <james@lovedthanlost.net>2008-09-21 02:32:51 +1000
commit7a3a38f58c099244c2a8b490f0b69c2fa63f3e16 (patch)
treec5bf762a1f3a7f9f0fa0a23eb442290e929e5a61 /test/data
parent16793d221f95b2430260c38cd7c36bb8a5ef8d49 (diff)
downloadpuppet-7a3a38f58c099244c2a8b490f0b69c2fa63f3e16.tar.gz
puppet-7a3a38f58c099244c2a8b490f0b69c2fa63f3e16.tar.xz
puppet-7a3a38f58c099244c2a8b490f0b69c2fa63f3e16.zip
Add rspec unit test for the append operator
Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
Diffstat (limited to 'test/data')
-rw-r--r--test/data/snippets/append.pp11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/data/snippets/append.pp b/test/data/snippets/append.pp
new file mode 100644
index 000000000..28edeb177
--- /dev/null
+++ b/test/data/snippets/append.pp
@@ -0,0 +1,11 @@
+$var=['/tmp/file1','/tmp/file2']
+
+class arraytest {
+ $var += ['/tmp/file3', '/tmp/file4']
+ file {
+ $var:
+ content => "test"
+ }
+}
+
+include arraytest