From d19ea3cbbda96db3099c2c27f4e070f90e14e1cb Mon Sep 17 00:00:00 2001 From: Dmitry Kudryavtsev Date: Wed, 1 Jun 2022 21:32:59 +0300 Subject: added wgsl_analyzer server (#719) --- tests/core/managers/cargo_spec.lua | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'tests') diff --git a/tests/core/managers/cargo_spec.lua b/tests/core/managers/cargo_spec.lua index eb65aead..a473fe75 100644 --- a/tests/core/managers/cargo_spec.lua +++ b/tests/core/managers/cargo_spec.lua @@ -53,6 +53,23 @@ describe("cargo manager", function() end) ) + it( + "should call cargo install with git source and a specific crate", + async_test(function() + installer.run_installer(ctx, cargo.crate("crate-name", { git = "https://my-crate.git" })) + assert.spy(ctx.spawn.cargo).was_called(1) + assert.spy(ctx.spawn.cargo).was_called_with { + "install", + "--root", + ".", + "--locked", + vim.NIL, + vim.NIL, -- --features + { "--git", "https://my-crate.git", "crate-name" }, + } + end) + ) + it( "should respect options", async_test(function() -- cgit v1.2.3-70-g09d2