diff options
author | w0rp <devw0rp@gmail.com> | 2017-11-26 18:47:30 +0000 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2017-11-26 18:47:30 +0000 |
commit | c07b3b9bfcc00fb8b6dd8b2e9627257df4c8ed4f (patch) | |
tree | 95c5fba379b66df2634251d6e60cf5ba873286ef /test/command_callback/test_rust_rls_callbacks.vader | |
parent | ae7cd2c0907573c9c4996296b642e547fd1ee04f (diff) | |
download | ale-c07b3b9bfcc00fb8b6dd8b2e9627257df4c8ed4f.zip |
Fix #1166 - Add an option for the rls toolchain
Diffstat (limited to 'test/command_callback/test_rust_rls_callbacks.vader')
-rw-r--r-- | test/command_callback/test_rust_rls_callbacks.vader | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/test/command_callback/test_rust_rls_callbacks.vader b/test/command_callback/test_rust_rls_callbacks.vader index b01f8f06..e467fd96 100644 --- a/test/command_callback/test_rust_rls_callbacks.vader +++ b/test/command_callback/test_rust_rls_callbacks.vader @@ -1,7 +1,9 @@ Before: Save g:ale_rust_rls_executable + Save g:ale_rust_rls_toolchain unlet! g:ale_rust_rls_executable + unlet! g:ale_rust_rls_toolchain runtime ale_linters/rust/rls.vim @@ -16,7 +18,14 @@ After: Execute(The default executable path should be correct): AssertEqual 'rls', ale_linters#rust#rls#GetExecutable(bufnr('')) AssertEqual - \ ale#Escape('rls') . ' +nightly', + \ ale#Escape('rls') . ' +' . ale#Escape('nightly'), + \ ale_linters#rust#rls#GetCommand(bufnr('')) + +Execute(The toolchain should be configurable): + let g:ale_rust_rls_toolchain = 'stable' + + AssertEqual + \ ale#Escape('rls') . ' +' . ale#Escape('stable'), \ ale_linters#rust#rls#GetCommand(bufnr('')) Execute(The language string should be correct): |