diff options
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 7cb95aa7a..6a76d81e9 100755 --- a/spec/unit/file_serving/base.rb +++ b/spec/unit/file_serving/base.rb @@ -81,6 +81,11 @@ describe Puppet::FileServing::Base do @file.full_path.should == "/this/file" end + it "should return the path if the relative_path is set to '.'" do + @file.relative_path = "." + @file.full_path.should == "/this/file" + end + it "should return the path joined with the relative path if there is a relative path and it is not set to '/' or ''" do @file.relative_path = "not/qualified" @file.full_path.should == "/this/file/not/qualified" |
