diff options
author | Luke Kanies <luke@madstop.com> | 2008-02-28 14:44:29 -0600 |
---|---|---|
committer | Luke Kanies <luke@madstop.com> | 2008-02-28 14:44:29 -0600 |
commit | dd17d4ca71e17deba8cf19e376e2d711fa516d92 (patch) | |
tree | 95ac73c5429d621cff7063dc517db6a770d7e730 /spec/unit | |
parent | 07cd482863dbfd396d9b2c19df67d103e111287d (diff) | |
download | puppet-dd17d4ca71e17deba8cf19e376e2d711fa516d92.tar.gz puppet-dd17d4ca71e17deba8cf19e376e2d711fa516d92.tar.xz puppet-dd17d4ca71e17deba8cf19e376e2d711fa516d92.zip |
Fixing #1093 -- 0.23.2 clients are again compatible
with 0.24.x servers. :ignore links is now equivalent
to :manage links.
Diffstat (limited to 'spec/unit')
-rwxr-xr-x | spec/unit/file_serving/file_base.rb | 6 |
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 |