summaryrefslogtreecommitdiff
path: root/test/handler
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2018-03-02 20:47:13 +0000
committerw0rp <devw0rp@gmail.com>2018-03-02 20:47:21 +0000
commit540952ca8e46d7be064b020d8ff308b205e7920c (patch)
tree8b27182680cc1552453d6f9e8a0976cf7c621ef4 /test/handler
parentad7ffe287574745994811f345e0defd863e575a0 (diff)
downloadale-540952ca8e46d7be064b020d8ff308b205e7920c.zip
Try to fix a test which is failing on Windows
Diffstat (limited to 'test/handler')
-rw-r--r--test/handler/test_mcsc_handler.vader6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/handler/test_mcsc_handler.vader b/test/handler/test_mcsc_handler.vader
index ac55ee81..6d6c4bad 100644
--- a/test/handler/test_mcsc_handler.vader
+++ b/test/handler/test_mcsc_handler.vader
@@ -3,10 +3,14 @@ Before:
unlet! g:ale_cs_mcsc_source
+ call ale#test#SetDirectory('/testplugin/test/handler')
+
runtime ale_linters/cs/mcsc.vim
After:
unlet! g:ale_cs_mcsc_source
+
+ call ale#test#RestoreDirectory()
call ale#linter#Reset()
Execute(The mcs handler should work with the default of the buffer's directory):
@@ -18,7 +22,7 @@ Execute(The mcs handler should work with the default of the buffer's directory):
\ 'text': '; expected',
\ 'code': 'CS1001',
\ 'type': 'E',
- \ 'filename': ale#path#Simplify(expand('%:p:h') . '/Test.cs'),
+ \ 'filename': ale#path#Simplify(g:dir . '/Test.cs'),
\ },
\ ],
\ ale_linters#cs#mcsc#Handle(347, [