aboutsummaryrefslogtreecommitdiffstats
path: root/tests/mason-core/managers/dotnet_spec.lua
diff options
context:
space:
mode:
authorWilliam Boman <william@redwill.se>2022-12-08 02:20:42 +0100
committerGitHub <noreply@github.com>2022-12-08 02:20:42 +0100
commitd97579ccd5689f9c6c365e841ea99c27954112ec (patch)
treee3bde9951ef1d4489e090f5dd3b83aafb1cf4f9e /tests/mason-core/managers/dotnet_spec.lua
parentfeat(platform): accept darwin (#743) (diff)
downloadmason-d97579ccd5689f9c6c365e841ea99c27954112ec.tar
mason-d97579ccd5689f9c6c365e841ea99c27954112ec.tar.gz
mason-d97579ccd5689f9c6c365e841ea99c27954112ec.tar.bz2
mason-d97579ccd5689f9c6c365e841ea99c27954112ec.tar.lz
mason-d97579ccd5689f9c6c365e841ea99c27954112ec.tar.xz
mason-d97579ccd5689f9c6c365e841ea99c27954112ec.tar.zst
mason-d97579ccd5689f9c6c365e841ea99c27954112ec.zip
refactor(installer): rename run_installer to exec_in_context (#744)
Diffstat (limited to 'tests/mason-core/managers/dotnet_spec.lua')
-rw-r--r--tests/mason-core/managers/dotnet_spec.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/mason-core/managers/dotnet_spec.lua b/tests/mason-core/managers/dotnet_spec.lua
index 8c04b875..ffcbd339 100644
--- a/tests/mason-core/managers/dotnet_spec.lua
+++ b/tests/mason-core/managers/dotnet_spec.lua
@@ -7,7 +7,7 @@ describe("dotnet manager", function()
async_test(function()
local handle = InstallHandleGenerator "dummy"
local ctx = InstallContextGenerator(handle, { requested_version = "42.13.37" })
- installer.run_installer(ctx, dotnet.package "main-package")
+ installer.exec_in_context(ctx, dotnet.package "main-package")
assert.spy(ctx.spawn.dotnet).was_called(1)
assert.spy(ctx.spawn.dotnet).was_called_with {
"tool",
@@ -25,7 +25,7 @@ describe("dotnet manager", function()
async_test(function()
local handle = InstallHandleGenerator "dummy"
local ctx = InstallContextGenerator(handle, { requested_version = "42.13.37" })
- installer.run_installer(ctx, dotnet.package "main-package")
+ installer.exec_in_context(ctx, dotnet.package "main-package")
assert.same({
type = "dotnet",
package = "main-package",