summaryrefslogtreecommitdiff
path: root/test/linter/test_rust_rls.vader
diff options
context:
space:
mode:
Diffstat (limited to 'test/linter/test_rust_rls.vader')
-rw-r--r--test/linter/test_rust_rls.vader9
1 files changed, 6 insertions, 3 deletions
diff --git a/test/linter/test_rust_rls.vader b/test/linter/test_rust_rls.vader
index 0b684c52..62c90d61 100644
--- a/test/linter/test_rust_rls.vader
+++ b/test/linter/test_rust_rls.vader
@@ -17,13 +17,16 @@ Execute(The toolchain should be ommitted if not given):
AssertLinter 'rls', ale#Escape('rls')
-Execute(The project root should be detected correctly):
- AssertLSPProject ''
-
+Execute(The project root should be detected correctly for cargo projects):
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 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_rls_config = {'rust': {'clippy_preference': 'on'}}