diff options
author | w0rp <devw0rp@gmail.com> | 2019-04-07 15:34:39 +0100 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2019-04-07 15:34:39 +0100 |
commit | e85eb824016a0ca4217d41cc2ec603ff22a3b74d (patch) | |
tree | 46e5ffc641820d765bc5c8898fe56154b23e9eeb /test/command_callback | |
parent | 3bebcb5d48a7150f5a318952ee309acb67fb376d (diff) | |
download | ale-e85eb824016a0ca4217d41cc2ec603ff22a3b74d.zip |
#2132 - Implement feature tests with ale#Has
Diffstat (limited to 'test/command_callback')
-rw-r--r-- | test/command_callback/test_elixir_ls_command_callbacks.vader | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/test/command_callback/test_elixir_ls_command_callbacks.vader b/test/command_callback/test_elixir_ls_command_callbacks.vader index ca785054..41a5bc34 100644 --- a/test/command_callback/test_elixir_ls_command_callbacks.vader +++ b/test/command_callback/test_elixir_ls_command_callbacks.vader @@ -1,25 +1,24 @@ Before: call ale#assert#SetUpLinterTest('elixir', 'elixir_ls') - let g:ale_has_override['win32'] = 0 - After: - let g:ale_has_override = {} - call ale#assert#TearDownLinterTest() -Execute(should set correct defaults (unix)): - AssertLinter 'elixir-ls/language_server.sh', 'elixir-ls/language_server.sh' - -Execute(should set correct defaults (win32)): - let g:ale_has_override['win32'] = 1 - - AssertLinter 'elixir-ls\language_server.bat', 'elixir-ls\language_server.bat' +Execute(should set correct defaults): + if has('win32') + AssertLinter 'elixir-ls\language_server.bat', 'elixir-ls\language_server.bat' + else + AssertLinter 'elixir-ls/language_server.sh', 'elixir-ls/language_server.sh' + endif Execute(should configure elixir-ls release location): let b:ale_elixir_elixir_ls_release = 'boo' - AssertLinter 'boo/language_server.sh', 'boo/language_server.sh' + if has('win32') + AssertLinter 'boo\language_server.bat', 'boo\language_server.bat' + else + AssertLinter 'boo/language_server.sh', 'boo/language_server.sh' + endif Execute(should set correct LSP values): call ale#test#SetFilename('elixir_paths/umbrella_project/apps/app1/lib/app.ex') |