diff options
author | w0rp <devw0rp@gmail.com> | 2017-05-08 22:59:25 +0100 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2017-05-08 22:59:25 +0100 |
commit | 6ea00af6895e111320a2047f43f94792a46b6cea (patch) | |
tree | 8a941fa08834e5dd512f3136b3c9b836ebf1b3d4 /test/util | |
parent | 28c6ec9cad3064966ff70c9da95c96364118eb57 (diff) | |
download | ale-6ea00af6895e111320a2047f43f94792a46b6cea.zip |
#540 Fix shell escaping pretty much everywhere
Diffstat (limited to 'test/util')
-rw-r--r-- | test/util/test_cd_string_commands.vader | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/test/util/test_cd_string_commands.vader b/test/util/test_cd_string_commands.vader index 36212e3b..b0b6c157 100644 --- a/test/util/test_cd_string_commands.vader +++ b/test/util/test_cd_string_commands.vader @@ -2,8 +2,7 @@ Before: silent! cd /testplugin/test/util Execute(CdString should output the correct command string): - AssertEqual 'cd /foo\ bar/baz && ', ale#path#CdString('/foo bar/baz') + AssertEqual 'cd ''/foo bar/baz'' && ', ale#path#CdString('/foo bar/baz') Execute(BufferCdString should output the correct command string): - Assert match(ale#path#BufferCdString(bufnr('')), '^cd .*test/util && $') >= 0, - \ 'String didn''t match regex: ' . ale#path#BufferCdString(bufnr('')) + AssertEqual 'cd ' . shellescape(getcwd()) . ' && ', ale#path#BufferCdString(bufnr('')) |