From 3bbf1029789744c61a19efa53c5c94caefbca1be Mon Sep 17 00:00:00 2001 From: "williambotman[bot]" <107473453+williambotman@users.noreply.github.com> Date: Tue, 19 Jul 2022 13:52:36 +0200 Subject: chore: update generated code (#99) * chore: update generated code * prepend rtp * stub is_installed Co-authored-by: William Boman --- tests/mason-lspconfig/setup_spec.lua | 2 ++ tests/minimal_init.vim | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'tests') 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 -- cgit v1.2.3-70-g09d2