summaryrefslogtreecommitdiff
path: root/test/paths_test.rb
diff options
context:
space:
mode:
authorDan Allen <dan.j.allen@gmail.com>2018-09-18 04:43:30 -0600
committerDan Allen <dan.j.allen@gmail.com>2018-09-18 04:43:30 -0600
commitfc847c3d85b8ae906786b3ffe1ce2d8cdf432645 (patch)
tree67b6f537fa3ecf62a266ee9b0aac1eb2e8417cf0 /test/paths_test.rb
parent410743cd8b10321226fffb5a5661a70222384a72 (diff)
add test to verify UNC path is preserved by PathResolver#system_path
Diffstat (limited to 'test/paths_test.rb')
-rw-r--r--test/paths_test.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/paths_test.rb b/test/paths_test.rb
index a9a647df..e06ace40 100644
--- a/test/paths_test.rb
+++ b/test/paths_test.rb
@@ -280,6 +280,10 @@ context 'Path Resolver' do
assert_equal '//QA/c$/users/asciidoctor/assets/stylesheet.css', @resolver.system_path('assets/stylesheet.css', '//QA/c$/users/asciidoctor')
end
+ test 'resolves UNC path if target is UNC path' do
+ assert_equal '//server/docs/output.html', @resolver.system_path('//server/docs/output.html')
+ end
+
test 'resolves relative target relative to current directory if start is empty' do
pwd = File.expand_path(Dir.pwd)
assert_equal "#{pwd}/images/tiger.png", @resolver.system_path('images/tiger.png', '')