summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2017-11-22 14:06:37 +0000
committerw0rp <devw0rp@gmail.com>2017-11-22 14:06:37 +0000
commit382cb4d5389725bf85865a87359d6ab744fb35f4 (patch)
treeba927b20de33ee34090a19132a9ba458ce0d7d87
parent520541cd2d8ebd22a9990875655fb2d10289fd22 (diff)
downloadale-382cb4d5389725bf85865a87359d6ab744fb35f4.zip
Fix a fixer test on Windows
-rw-r--r--test/test_ale_fix.vader5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/test_ale_fix.vader b/test/test_ale_fix.vader
index 07a53c75..c36de786 100644
--- a/test/test_ale_fix.vader
+++ b/test/test_ale_fix.vader
@@ -605,5 +605,10 @@ Execute(A temporary file shouldn't be piped into the command when disabled):
\ string(ale#job#PrepareCommand('echo new line')),
\ string(ale#history#Get(bufnr(''))[-1].command)
+ " Remove trailing whitespace for Windows.
+ if has('win32')
+ %s/[[:space:]]*$//g
+ endif
+
Expect(The new line should be used):
new line