summaryrefslogtreecommitdiffstats
path: root/acceptance/tests/jeff_append_to_array.rb
diff options
context:
space:
mode:
authorDominic Maraglia <dmaraglia@gmail.com>2011-04-20 14:51:55 -0700
committerDominic Maraglia <dmaraglia@gmail.com>2011-04-20 14:51:55 -0700
commitdb26326364103ed2f7fbd56d246d700cc2d9a0f9 (patch)
tree3710495d5f068c700ed1e3b74fa45c147fd0a196 /acceptance/tests/jeff_append_to_array.rb
parentbee1ef73e5c83541edcf1249f062ba832618da48 (diff)
Move tests from puppet-acceptance repo
Diffstat (limited to 'acceptance/tests/jeff_append_to_array.rb')
-rw-r--r--acceptance/tests/jeff_append_to_array.rb19
1 files changed, 19 insertions, 0 deletions
diff --git a/acceptance/tests/jeff_append_to_array.rb b/acceptance/tests/jeff_append_to_array.rb
new file mode 100644
index 000000000..415d59fe8
--- /dev/null
+++ b/acceptance/tests/jeff_append_to_array.rb
@@ -0,0 +1,19 @@
+# Ported from the acceptance test suite.
+test_name "Jeff: Append to Array"
+
+manifest = %q{
+ class parent {
+ $arr1 = [ "parent array element" ]
+ }
+ class parent::child inherits parent {
+ $arr1 += [ "child array element" ]
+ notify { $arr1: }
+ }
+ include parent::child
+}
+
+apply_manifest_on(agents, manifest) do
+ stdout =~ /notice: parent array element/ or fail_test("parent missing")
+ stdout =~ /notice: child array element/ or fail_test("child missing")
+end
+