aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/mason/setup_spec.lua8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/mason/setup_spec.lua b/tests/mason/setup_spec.lua
index 97947420..3aa4d3dd 100644
--- a/tests/mason/setup_spec.lua
+++ b/tests/mason/setup_spec.lua
@@ -78,4 +78,12 @@ describe("mason setup", function()
nargs = "0",
}(user_commands["MasonLog"]))
end)
+
+ it("should set the has_setup flag", function()
+ package.loaded["mason"] = nil
+ local mason = require "mason"
+ assert.is_false(mason.has_setup)
+ mason.setup()
+ assert.is_true(mason.has_setup)
+ end)
end)