summaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
authorMax Martin <max@puppetlabs.com>2011-04-07 16:17:04 -0700
committerMax Martin <max@puppetlabs.com>2011-04-08 14:19:18 -0700
commite493f8acf9fe40baadf4fcd4e1176afa6264d768 (patch)
tree5430c4e5d5b660484182adf076a9492032434beb /spec
parentda4457be4dedaed5368bacf81a08f0429e21cd45 (diff)
downloadpuppet-e493f8acf9fe40baadf4fcd4e1176afa6264d768.tar.gz
puppet-e493f8acf9fe40baadf4fcd4e1176afa6264d768.tar.xz
puppet-e493f8acf9fe40baadf4fcd4e1176afa6264d768.zip
(#6856) Copy dangling symlinks with 'links => manage' File resource.
When copying symlinks with 'links => manage', there is no need to examine the content of the link target, since the link is supposed to be copied as-is. Skip copying this value to the resource from the metadata (source), since the content will be nil in the dangling symlink case. Paired-with: Jacob Helwig
Diffstat (limited to 'spec')
-rwxr-xr-xspec/unit/type/file/source_spec.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/unit/type/file/source_spec.rb b/spec/unit/type/file/source_spec.rb
index 00cc2f235..6e04fa2a5 100755
--- a/spec/unit/type/file/source_spec.rb
+++ b/spec/unit/type/file/source_spec.rb
@@ -187,6 +187,7 @@ describe Puppet::Type.type(:file).attrclass(:source) do
describe "and the source is a link" do
it "should set the target to the link destination" do
@metadata.stubs(:ftype).returns "link"
+ @metadata.stubs(:links).returns "manage"
@resource.stubs(:[])
@resource.stubs(:[]=)