summaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2008-08-29 01:29:20 -0700
committerLuke Kanies <luke@madstop.com>2008-08-29 01:29:20 -0700
commita9b7f0881aed04fbbca59947cab0ffeedda6d2f8 (patch)
tree7d695264173a5491b86ce65f35985e698bb3b859 /spec
parentb69c50ccd3a491b6c4a8d456af2fe6f9cac45eae (diff)
downloadpuppet-a9b7f0881aed04fbbca59947cab0ffeedda6d2f8.tar.gz
puppet-a9b7f0881aed04fbbca59947cab0ffeedda6d2f8.tar.xz
puppet-a9b7f0881aed04fbbca59947cab0ffeedda6d2f8.zip
As far as I can tell, recursion is working entirely.
W00t! Signed-off-by: Luke Kanies <luke@madstop.com>
Diffstat (limited to 'spec')
-rwxr-xr-xspec/unit/type/file.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/unit/type/file.rb b/spec/unit/type/file.rb
index 327c49d9c..f0ebb49e2 100755
--- a/spec/unit/type/file.rb
+++ b/spec/unit/type/file.rb
@@ -513,6 +513,12 @@ describe Puppet::Type.type(:file) do
Puppet::Type.type(:file).expects(:create).with { |options| ! options.include?(:target) }
@file.newchild("my/path")
end
+
+ it "should not copy any nil values from the parent" do
+ @file.expects(:to_hash).returns :ensure => nil
+ Puppet::Type.type(:file).expects(:create).with { |options| ! options.include?(:ensure) }
+ @file.newchild("my/path")
+ end
end
end
end