summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2018-03-26 09:58:48 +0100
committerw0rp <devw0rp@gmail.com>2018-03-26 09:58:48 +0100
commit8e9ae59e5e583e00df3d1a4075b5dd08cdd4de76 (patch)
tree54960018363db2559b606db2a91c67cb82ad921b /test
parent8b34a4bf6b837e1ce7e060b053ec8abedd20cdb1 (diff)
downloadale-8e9ae59e5e583e00df3d1a4075b5dd08cdd4de76.zip
Fix paths for running tests on Windows
Diffstat (limited to 'test')
-rw-r--r--test/command_callback/test_textlint_command_callbacks.vader8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/command_callback/test_textlint_command_callbacks.vader b/test/command_callback/test_textlint_command_callbacks.vader
index 864ad8f7..6a1a3d58 100644
--- a/test/command_callback/test_textlint_command_callbacks.vader
+++ b/test/command_callback/test_textlint_command_callbacks.vader
@@ -61,7 +61,7 @@ Execute(The local executable from .bin should be used if available):
\ ale#handlers#textlint#GetExecutable(bufnr(''))
AssertEqual
- \ ale#Escape(g:dir . '/textlint_paths/with_bin_path/node_modules/.bin/textlint') . ' -f json %t',
+ \ ale#Escape(ale#path#Simplify(g:dir . '/textlint_paths/with_bin_path/node_modules/.bin/textlint')) . ' -f json %t',
\ ale#handlers#textlint#GetCommand(bufnr(''))
Execute(The local executable from textlint/bin should be used if available):
@@ -73,11 +73,11 @@ Execute(The local executable from textlint/bin should be used if available):
if has('win32')
AssertEqual
- \ ale#Escape('node.exe') . ' ' . ale#Escape(g:dir . '/textlint_paths/with_textlint_bin_path/node_modules/textlint/bin/textlint.js') . ' -f json %t',
+ \ ale#Escape('node.exe') . ' ' . ale#Escape(ale#path#Simplify(g:dir . '/textlint_paths/with_textlint_bin_path/node_modules/textlint/bin/textlint.js')) . ' -f json %t',
\ ale#handlers#textlint#GetCommand(bufnr(''))
else
AssertEqual
- \ ale#Escape(g:dir . '/textlint_paths/with_textlint_bin_path/node_modules/textlint/bin/textlint.js') . ' -f json %t',
+ \ ale#Escape(ale#path#Simplify(g:dir . '/textlint_paths/with_textlint_bin_path/node_modules/textlint/bin/textlint.js')) . ' -f json %t',
\ ale#handlers#textlint#GetCommand(bufnr(''))
endif
@@ -86,6 +86,6 @@ Execute(Configuration files should be discovered):
AssertEqual
\ ale#Escape('textlint')
- \ . ' -c ' . ale#Escape(g:dir . '/textlint_paths/with_config_path/.textlintrc')
+ \ . ' -c ' . ale#Escape(ale#path#Simplify(g:dir . '/textlint_paths/with_config_path/.textlintrc'))
\ . ' -f json %t',
\ ale#handlers#textlint#GetCommand(bufnr(''))