summaryrefslogtreecommitdiff
path: root/test/linter/test_rust_analyzer.vader
diff options
context:
space:
mode:
Diffstat (limited to 'test/linter/test_rust_analyzer.vader')
-rw-r--r--test/linter/test_rust_analyzer.vader9
1 files changed, 5 insertions, 4 deletions
diff --git a/test/linter/test_rust_analyzer.vader b/test/linter/test_rust_analyzer.vader
index 2ee996c7..1dd2c780 100644
--- a/test/linter/test_rust_analyzer.vader
+++ b/test/linter/test_rust_analyzer.vader
@@ -8,19 +8,20 @@ Execute(The default executable path should be correct):
AssertLinter 'rust-analyzer', ale#Escape('rust-analyzer')
Execute(The project root should be detected correctly in cargo projects):
- AssertLSPProject ''
-
call ale#test#SetFilename('../test-files/rust/cargo/testfile.rs')
AssertLSPProject ale#path#Simplify(g:dir . '/../test-files/rust/cargo')
Execute(The project root should be detected correctly in non-cargo projects):
- AssertLSPProject ''
-
call ale#test#SetFilename('../test-files/rust/rust-project/testfile.rs')
AssertLSPProject ale#path#Simplify(g:dir . '/../test-files/rust/rust-project')
+Execute(The project root should be empty when no project files can be detected):
+ call ale#test#SetFilename('../test-files/dummy')
+
+ AssertLSPProject ''
+
Execute(Should accept configuration settings):
AssertLSPConfig {}
let b:ale_rust_analyzer_config = {'diagnostics': {'disabled': ['unresolved-import']}}