diff options
Diffstat (limited to 'spec/unit')
-rwxr-xr-x | spec/unit/file_serving/base.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/unit/file_serving/base.rb b/spec/unit/file_serving/base.rb index 4eb62b038..de7ea4756 100755 --- a/spec/unit/file_serving/base.rb +++ b/spec/unit/file_serving/base.rb @@ -31,6 +31,10 @@ describe Puppet::FileServing::Base do proc { Puppet::FileServing::Base.new("/module/dir/file", :links => :else) }.should raise_error(ArgumentError) end + it "should allow links values to be set as strings" do + Puppet::FileServing::Base.new("/module/dir/file", :links => "follow").links.should == :follow + end + it "should default to :manage for :links" do Puppet::FileServing::Base.new("/module/dir/file").links.should == :manage end |