diff options
| author | Dmitry Kudryavtsev <ko.dmitri@gmail.com> | 2022-06-01 21:32:59 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-06-01 20:32:59 +0200 |
| commit | d19ea3cbbda96db3099c2c27f4e070f90e14e1cb (patch) | |
| tree | 1294c42b43d469ee331cfa5e589c5a96ff13245e /tests | |
| parent | refactor(grammarly): use new official package (#720) (diff) | |
| download | mason-d19ea3cbbda96db3099c2c27f4e070f90e14e1cb.tar mason-d19ea3cbbda96db3099c2c27f4e070f90e14e1cb.tar.gz mason-d19ea3cbbda96db3099c2c27f4e070f90e14e1cb.tar.bz2 mason-d19ea3cbbda96db3099c2c27f4e070f90e14e1cb.tar.lz mason-d19ea3cbbda96db3099c2c27f4e070f90e14e1cb.tar.xz mason-d19ea3cbbda96db3099c2c27f4e070f90e14e1cb.tar.zst mason-d19ea3cbbda96db3099c2c27f4e070f90e14e1cb.zip | |
added wgsl_analyzer server (#719)
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/core/managers/cargo_spec.lua | 17 |
1 files changed, 17 insertions, 0 deletions
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 @@ -54,6 +54,23 @@ describe("cargo manager", function() ) 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() ctx.requested_version = Optional.of "42.13.37" |
