summaryrefslogtreecommitdiff
path: root/test/command_callback
diff options
context:
space:
mode:
authorJon Gjengset <jon@thesquareplanet.com>2019-10-16 11:34:06 -0400
committerJon Gjengset <jon@thesquareplanet.com>2019-10-16 11:34:16 -0400
commitf5c289dce68f1592281b5d70539df91d4b3d2821 (patch)
tree186a245ea37232eed48c3654491ac5122a4e4401 /test/command_callback
parent7c5825ecbc166d71976d01213e42723128d933e7 (diff)
downloadale-f5c289dce68f1592281b5d70539df91d4b3d2821.zip
Add support for rust-analyzer
Fixes #2832
Diffstat (limited to 'test/command_callback')
-rw-r--r--test/command_callback/test_rust_analyzer_callbacks.vader20
1 files changed, 20 insertions, 0 deletions
diff --git a/test/command_callback/test_rust_analyzer_callbacks.vader b/test/command_callback/test_rust_analyzer_callbacks.vader
new file mode 100644
index 00000000..887cf127
--- /dev/null
+++ b/test/command_callback/test_rust_analyzer_callbacks.vader
@@ -0,0 +1,20 @@
+Before:
+ call ale#assert#SetUpLinterTest('rust', 'analyzer')
+
+After:
+ call ale#assert#TearDownLinterTest()
+
+Execute(The default executable path should be correct):
+ AssertLinter 'analyzer', ale#Escape('ra_lsp_server')
+
+Execute(The project root should be detected correctly):
+ AssertLSPProject ''
+
+ call ale#test#SetFilename('rust-rls-project/test.rs')
+
+ AssertLSPProject ale#path#Simplify(g:dir . '/rust-rls-project')
+
+Execute(Should accept configuration settings):
+ AssertLSPConfig {}
+ let b:ale_rust_analyzer_config = {'rust': {'clippy_preference': 'on'}}
+ AssertLSPConfig {'rust': {'clippy_preference': 'on'}}