summaryrefslogtreecommitdiff
path: root/test/util
diff options
context:
space:
mode:
Diffstat (limited to 'test/util')
-rw-r--r--test/util/test_cd_string_commands.vader5
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(''))