diff options
author | w0rp <devw0rp@gmail.com> | 2017-06-22 13:51:18 +0100 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2017-06-22 13:51:18 +0100 |
commit | 47401a6eda6f86f88ff476bf62c6093685e93b35 (patch) | |
tree | 4ffe0f99154dffacb2090d6c74fdf7415169c666 /test/handler/test_perl_handler.vader | |
parent | ce2bfa88eb3dbfe1e2d0f6dd8b0781cb61c15cc1 (diff) | |
download | ale-47401a6eda6f86f88ff476bf62c6093685e93b35.zip |
Fix the Perl tests in Docker
Diffstat (limited to 'test/handler/test_perl_handler.vader')
-rw-r--r-- | test/handler/test_perl_handler.vader | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/test/handler/test_perl_handler.vader b/test/handler/test_perl_handler.vader index b8b7b6c7..1effd68c 100644 --- a/test/handler/test_perl_handler.vader +++ b/test/handler/test_perl_handler.vader @@ -1,27 +1,26 @@ Before: - " Switch to the test rails directory. - let b:path = getcwd() silent! cd /testplugin/test/handler + let g:dir = getcwd() runtime ale_linters/perl/perl.vim After: - silent! 'cd ' . fnameescape(b:path) - unlet! b:path + silent execute 'cd ' . fnameescape(g:dir) + unlet! g:dir call ale#linter#Reset() Execute(The Perl linter should ignore errors from other files): - silent! noautocmd file bar.pl + call ale#test#SetFilename('bar.pl') AssertEqual \ [ \ {'lnum': '2', 'type': 'E', 'text': 'Compilation failed in require'}, \ ], \ ale_linters#perl#perl#Handle(bufnr(''), [ - \ 'syntax error at ' . b:path . '/foo.pm line 4, near "aklsdfjmy "', - \ 'Compilation failed in require at ' . b:path . '/bar.pl line 2.', - \ 'BEGIN failed--compilation aborted at ' . b:path . '/bar.pl line 2.', + \ 'syntax error at ' . g:dir . '/foo.pm line 4, near "aklsdfjmy "', + \ 'Compilation failed in require at ' . g:dir . '/bar.pl line 2.', + \ 'BEGIN failed--compilation aborted at ' . g:dir . '/bar.pl line 2.', \ ]) Execute(The Perl linter should complain about failing to locate modules): |