summaryrefslogtreecommitdiff
path: root/test/paths_test.rb
diff options
context:
space:
mode:
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 3940c384..0a4a3e96 100644
--- a/test/paths_test.rb
+++ b/test/paths_test.rb
@@ -42,6 +42,10 @@ context 'Path Resolver' do
assert_equal './assets/images', @resolver.web_path('./images', './assets')
end
+ test 'target with relative path appended to url start path' do
+ assert_equal 'http://www.example.com/assets/images', @resolver.web_path('images', 'http://www.example.com/assets')
+ end
+
test 'normalize target' do
assert_equal '../images', @resolver.web_path('../images/../images')
end