aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorwilliambotman[bot] <107473453+williambotman@users.noreply.github.com>2022-07-19 13:52:36 +0200
committerGitHub <noreply@github.com>2022-07-19 11:52:36 +0000
commit3bbf1029789744c61a19efa53c5c94caefbca1be (patch)
tree0d6a5ad9e3419fa3d1198bb988efc828e17a3c94 /tests
parentfeat: add isort formatter (#98) (diff)
downloadmason-3bbf1029789744c61a19efa53c5c94caefbca1be.tar
mason-3bbf1029789744c61a19efa53c5c94caefbca1be.tar.gz
mason-3bbf1029789744c61a19efa53c5c94caefbca1be.tar.bz2
mason-3bbf1029789744c61a19efa53c5c94caefbca1be.tar.lz
mason-3bbf1029789744c61a19efa53c5c94caefbca1be.tar.xz
mason-3bbf1029789744c61a19efa53c5c94caefbca1be.tar.zst
mason-3bbf1029789744c61a19efa53c5c94caefbca1be.zip
chore: update generated code (#99)
* chore: update generated code * prepend rtp * stub is_installed Co-authored-by: William Boman <william@redwill.se>
Diffstat (limited to 'tests')
-rw-r--r--tests/mason-lspconfig/setup_spec.lua2
-rw-r--r--tests/minimal_init.vim2
2 files changed, 3 insertions, 1 deletions
diff --git a/tests/mason-lspconfig/setup_spec.lua b/tests/mason-lspconfig/setup_spec.lua
index 28dbad40..64067b1c 100644
--- a/tests/mason-lspconfig/setup_spec.lua
+++ b/tests/mason-lspconfig/setup_spec.lua
@@ -37,6 +37,8 @@ describe("mason-lspconfig setup", function()
it("should install servers listed in ensure_installed", function()
local dummy = registry.get_package "dummy"
spy.on(Pkg, "install")
+ stub(Pkg, "is_installed")
+ Pkg.is_installed.returns(false)
mason_lspconfig.setup { ensure_installed = { "dummylsp@1.0.0" } }
assert.spy(Pkg.install).was_called(1)
assert.spy(Pkg.install).was_called_with(match.ref(dummy), {
diff --git a/tests/minimal_init.vim b/tests/minimal_init.vim
index a42b6f89..ab61d7ed 100644
--- a/tests/minimal_init.vim
+++ b/tests/minimal_init.vim
@@ -7,7 +7,7 @@ let $mason = getcwd()
let $test_helpers = getcwd() .. "/tests/helpers"
let $dependencies = getcwd() .. "/dependencies"
-set rtp+=$mason,$test_helpers
+set rtp^=$mason,$test_helpers
set packpath=$dependencies
packloadall