summaryrefslogtreecommitdiff
path: root/test/command_callback
diff options
context:
space:
mode:
authorw0rp <w0rp@users.noreply.github.com>2018-06-20 22:41:19 +0100
committerGitHub <noreply@github.com>2018-06-20 22:41:19 +0100
commitd7efb13203a1ebec24c963ff2f7c9dc99a4ea2a8 (patch)
tree327f2801bfccf2af66dd95df7f471e1207787d1f /test/command_callback
parent864818a38528e91363fab3561c6359e272b35929 (diff)
downloadale-d7efb13203a1ebec24c963ff2f7c9dc99a4ea2a8.zip
Try to fix the tests on Windows
Diffstat (limited to 'test/command_callback')
-rw-r--r--test/command_callback/test_elixir_mix_command_callbacks.vader6
1 files changed, 1 insertions, 5 deletions
diff --git a/test/command_callback/test_elixir_mix_command_callbacks.vader b/test/command_callback/test_elixir_mix_command_callbacks.vader
index 22d35eeb..67785881 100644
--- a/test/command_callback/test_elixir_mix_command_callbacks.vader
+++ b/test/command_callback/test_elixir_mix_command_callbacks.vader
@@ -13,13 +13,9 @@ Before:
function! GetCommand(buffer) abort
let l:command = ale_linters#elixir#mix#GetCommand(a:buffer)
- let l:split_command = split(l:command, 'MIX_BUILD_PATH=[^ ]*\s')
-
- return l:split_command[0] . 'MIX_BUILD_PATH=TEMP' . l:split_command[1]
+ return substitute(l:command, 'MIX_BUILD_PATH=[^ ]\+', 'MIX_BUILD_PATH=TEMP', '')
endfunction
-
-
After:
Restore