diff options
| author | Dan Allen <dan.j.allen@gmail.com> | 2014-01-27 05:02:28 -0700 |
|---|---|---|
| committer | Dan Allen <dan.j.allen@gmail.com> | 2014-01-28 01:01:10 -0700 |
| commit | fd3fc2ba5b068ce8609cc280940ed3a1342b89eb (patch) | |
| tree | 3087955b901ea50d977747db64f455c78827ba89 /test/paths_test.rb | |
| parent | 4e3ccbe9984c05cf211a7fdb9672eb5bf5708a17 (diff) | |
resolves #806 recognize Windows UNC path as absolute and preserve it
Diffstat (limited to 'test/paths_test.rb')
| -rw-r--r-- | test/paths_test.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/paths_test.rb b/test/paths_test.rb index acb24602..f9a1538f 100644 --- a/test/paths_test.rb +++ b/test/paths_test.rb @@ -150,6 +150,10 @@ context 'Path Resolver' do assert_equal '/usr/share/assets/stylesheet.css', @resolver.system_path('assets/stylesheet.css', '/usr/share') end + test 'resolves absolute UNC path if start is absolute and target is relative' do + assert_equal '//QA/c$/users/asciidoctor/assets/stylesheet.css', @resolver.system_path('assets/stylesheet.css', '//QA/c$/users/asciidoctor') + 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', '') |
