summaryrefslogtreecommitdiffstats
path: root/spec/unit
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2008-02-28 15:59:49 -0600
committerLuke Kanies <luke@madstop.com>2008-02-28 15:59:49 -0600
commit8df0c1ba76b3fab2ebafb3682a2364561ba6e82a (patch)
tree7c4e9d817f57452cbee9213cb602c67528fa8f18 /spec/unit
parentabd688ea1a0ebd555eac20185d82cc6430507edf (diff)
parent82b02b90493f0abc173ec4cc09948106ae5190cd (diff)
downloadpuppet-8df0c1ba76b3fab2ebafb3682a2364561ba6e82a.tar.gz
puppet-8df0c1ba76b3fab2ebafb3682a2364561ba6e82a.tar.xz
puppet-8df0c1ba76b3fab2ebafb3682a2364561ba6e82a.zip
Merge branch '0.24.x' of ssh://reductivelabs.com/opt/rl/git/puppet into 0.24.x
Diffstat (limited to 'spec/unit')
-rwxr-xr-xspec/unit/file_serving/file_base.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/spec/unit/file_serving/file_base.rb b/spec/unit/file_serving/file_base.rb
index e1a61cd65..ded6ae4a8 100755
--- a/spec/unit/file_serving/file_base.rb
+++ b/spec/unit/file_serving/file_base.rb
@@ -13,7 +13,11 @@ describe Puppet::FileServing::FileBase do
Puppet::FileServing::FileBase.new("puppet://host/module/dir/file", :links => :manage).links.should == :manage
end
- it "should fail if :links is set to anything other than :manage or :follow" do
+ it "should consider :ignore links equivalent to :manage links" do
+ Puppet::FileServing::FileBase.new("puppet://host/module/dir/file", :links => :ignore).links.should == :manage
+ end
+
+ it "should fail if :links is set to anything other than :manage, :follow, or :ignore" do
proc { Puppet::FileServing::FileBase.new("puppet://host/module/dir/file", :links => :else) }.should raise_error(ArgumentError)
end