aboutsummaryrefslogtreecommitdiffstats
path: root/tests/mason-core/managers/github_spec.lua
diff options
context:
space:
mode:
Diffstat (limited to 'tests/mason-core/managers/github_spec.lua')
-rw-r--r--tests/mason-core/managers/github_spec.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/mason-core/managers/github_spec.lua b/tests/mason-core/managers/github_spec.lua
index 05c8af3a..f2f85210 100644
--- a/tests/mason-core/managers/github_spec.lua
+++ b/tests/mason-core/managers/github_spec.lua
@@ -14,6 +14,7 @@ describe("github release file", function()
stub(client, "fetch_latest_release")
local handle = InstallHandleGenerator "dummy"
local ctx = InstallContextGenerator(handle)
+ installer.prepare_installer(ctx)
local source = installer.exec_in_context(ctx, function()
return github.release_file {
repo = "williamboman/mason.nvim",
@@ -39,6 +40,7 @@ describe("github release file", function()
}))
local handle = InstallHandleGenerator "dummy"
local ctx = InstallContextGenerator(handle)
+ installer.prepare_installer(ctx)
local source = installer.exec_in_context(ctx, function()
return github.release_file {
repo = "williamboman/mason.nvim",
@@ -66,6 +68,7 @@ describe("github release version", function()
stub(client, "fetch_latest_release")
local handle = InstallHandleGenerator "dummy"
local ctx = InstallContextGenerator(handle)
+ installer.prepare_installer(ctx)
local source = installer.exec_in_context(ctx, function()
return github.release_version {
repo = "williamboman/mason.nvim",
@@ -85,6 +88,7 @@ describe("github release version", function()
client.fetch_latest_release.returns(Result.success { tag_name = "v42" })
local handle = InstallHandleGenerator "dummy"
local ctx = InstallContextGenerator(handle)
+ installer.prepare_installer(ctx)
local source = installer.exec_in_context(ctx, function()
return github.release_version {
repo = "williamboman/mason.nvim",