summaryrefslogtreecommitdiff
path: root/test/paths_test.rb
diff options
context:
space:
mode:
authorDan Allen <dan.j.allen@gmail.com>2016-11-29 23:39:14 -0700
committerGitHub <noreply@github.com>2016-11-29 23:39:14 -0700
commit282221b2bca816fe1e710277404a036791c774df (patch)
tree580cf3c516f159d5fc8bd95668b7e77c418e058e /test/paths_test.rb
parent9af70bd960a4eecc6b6cddb8bba49ebff823474b (diff)
resolves #1943 allow spaces in target of block image (PR #1947)
- allow spaces in target of block image - URL encode spaces in image URI (replace space with %20) - add test
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 bf9f73b4..f7fd96c2 100644
--- a/test/paths_test.rb
+++ b/test/paths_test.rb
@@ -95,6 +95,10 @@ context 'Path Resolver' do
assert_equal 'assets/images', @resolver.web_path('assets\\images')
assert_equal '../assets/images', @resolver.web_path('assets\\images', '..\\images\\..')
end
+
+ test 'URL encode spaces in path' do
+ assert_equal 'assets%20and%20stuff/lots%20of%20images', @resolver.web_path('lots of images', 'assets and stuff')
+ end
end
context 'System Paths' do