From d97579ccd5689f9c6c365e841ea99c27954112ec Mon Sep 17 00:00:00 2001 From: William Boman Date: Thu, 8 Dec 2022 02:20:42 +0100 Subject: refactor(installer): rename run_installer to exec_in_context (#744) --- tests/mason-core/managers/github_spec.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tests/mason-core/managers/github_spec.lua') diff --git a/tests/mason-core/managers/github_spec.lua b/tests/mason-core/managers/github_spec.lua index c0285519..05c8af3a 100644 --- a/tests/mason-core/managers/github_spec.lua +++ b/tests/mason-core/managers/github_spec.lua @@ -14,7 +14,7 @@ describe("github release file", function() stub(client, "fetch_latest_release") local handle = InstallHandleGenerator "dummy" local ctx = InstallContextGenerator(handle) - local source = installer.run_installer(ctx, function() + local source = installer.exec_in_context(ctx, function() return github.release_file { repo = "williamboman/mason.nvim", asset_file = "program.exe", @@ -39,7 +39,7 @@ describe("github release file", function() })) local handle = InstallHandleGenerator "dummy" local ctx = InstallContextGenerator(handle) - local source = installer.run_installer(ctx, function() + local source = installer.exec_in_context(ctx, function() return github.release_file { repo = "williamboman/mason.nvim", asset_file = function(version) @@ -66,7 +66,7 @@ describe("github release version", function() stub(client, "fetch_latest_release") local handle = InstallHandleGenerator "dummy" local ctx = InstallContextGenerator(handle) - local source = installer.run_installer(ctx, function() + local source = installer.exec_in_context(ctx, function() return github.release_version { repo = "williamboman/mason.nvim", version = Optional.of "13.37", @@ -85,7 +85,7 @@ describe("github release version", function() client.fetch_latest_release.returns(Result.success { tag_name = "v42" }) local handle = InstallHandleGenerator "dummy" local ctx = InstallContextGenerator(handle) - local source = installer.run_installer(ctx, function() + local source = installer.exec_in_context(ctx, function() return github.release_version { repo = "williamboman/mason.nvim", } -- cgit v1.2.3-70-g09d2