diff options
| author | Dan Allen <dan.j.allen@gmail.com> | 2013-07-03 20:16:02 -0600 |
|---|---|---|
| committer | Dan Allen <dan.j.allen@gmail.com> | 2013-07-03 20:16:02 -0600 |
| commit | ea967bc31a75d9f0d715e673d46b3db9cc70e70c (patch) | |
| tree | b4111bcecefbdf8a552d3ece76476588f0c6e63b /test/paths_test.rb | |
| parent | f6f7618ec7c2daffe1200daded078092e20bc18e (diff) | |
resolves #470 allow uri to be used in inline image
- don't mangle imagesdir value if its a uri
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 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 |
