diff options
| author | Luke Kanies <luke@madstop.com> | 2008-11-04 17:22:27 -0600 |
|---|---|---|
| committer | Luke Kanies <luke@madstop.com> | 2008-11-04 17:22:27 -0600 |
| commit | a9dbb5de66c9a97d13f7e7ade47bb6c3b5fa2e66 (patch) | |
| tree | 68cfc356eca467e18e1e4837dd7f575686693d11 /spec/unit | |
| parent | bb6619a74866605a07869f9467273d6e2e389dab (diff) | |
| download | puppet-a9dbb5de66c9a97d13f7e7ade47bb6c3b5fa2e66.tar.gz puppet-a9dbb5de66c9a97d13f7e7ade47bb6c3b5fa2e66.tar.xz puppet-a9dbb5de66c9a97d13f7e7ade47bb6c3b5fa2e66.zip | |
Deduplicating slashes in the fileserving code
Signed-off-by: Luke Kanies <luke@madstop.com>
Diffstat (limited to 'spec/unit')
| -rwxr-xr-x | spec/unit/file_serving/base.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/unit/file_serving/base.rb b/spec/unit/file_serving/base.rb index 6a76d81e9..4eb62b038 100755 --- a/spec/unit/file_serving/base.rb +++ b/spec/unit/file_serving/base.rb @@ -90,6 +90,11 @@ describe Puppet::FileServing::Base do @file.relative_path = "not/qualified" @file.full_path.should == "/this/file/not/qualified" end + + it "should strip extra slashes" do + file = Puppet::FileServing::Base.new("//this//file") + file.full_path.should == "/this/file" + end end describe "when stat'ing files" do |
