From 4cd757c1e32f0cf1f281b82cd55615d0e47edb24 Mon Sep 17 00:00:00 2001 From: David Wood Date: Thu, 7 Mar 2019 12:28:19 +0100 Subject: Remove rust-project.json test w/ dependencies. --- crates/ra_lsp_server/tests/heavy_tests/main.rs | 43 -------------------------- 1 file changed, 43 deletions(-) (limited to 'crates/ra_lsp_server') diff --git a/crates/ra_lsp_server/tests/heavy_tests/main.rs b/crates/ra_lsp_server/tests/heavy_tests/main.rs index 8e4e1fb88..41c240139 100644 --- a/crates/ra_lsp_server/tests/heavy_tests/main.rs +++ b/crates/ra_lsp_server/tests/heavy_tests/main.rs @@ -321,46 +321,3 @@ fn main() {} json!([]), ); } - -#[test] -fn completes_items_from_second_crate_in_json_project() { - let tmp_dir = TempDir::new().unwrap(); - let code = format!( - r#" -//- rust-project.json -{{ - "roots": [ "{PATH}" ], - "crates": [ - {{ - "root_module": "{PATH}/foo/lib.rs", - "deps": [ - {{ - "name": "bar", - "crate": 1 - }} - ], - "edition": "2015" - }}, - {{ "root_module": "{PATH}/bar/lib.rs", "deps": [], "edition": "2015" }} - ] -}} - -//- bar/lib.rs -pub struct Spam; -pub struct CannedMeat; - -//- foo/lib.rs -extern crate bar; -use bar::Spam; -"#, - PATH = tmp_dir.path().display() - ); - let server = project_with_tmpdir(tmp_dir, &code); - server.wait_for_message("workspace loaded"); - let res = server.send_request::(CompletionParams { - text_document: server.doc_id("foo/lib.rs"), - context: None, - position: Position::new(1, 10), - }); - assert!(format!("{}", res).contains("CannedMeat")); -} -- cgit v1.2.3