From 03e401231972d7b4db0145a71ce74d5d18d1a901 Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Mon, 26 Feb 2024 18:30:31 -0300 Subject: tests: reorganize and speed up unit tests --- spec/which_spec.lua | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'spec/which_spec.lua') diff --git a/spec/which_spec.lua b/spec/which_spec.lua index 9ccb1040..5712511b 100644 --- a/spec/which_spec.lua +++ b/spec/which_spec.lua @@ -2,17 +2,14 @@ local test_env = require("spec.util.test_env") local run = test_env.run local P = test_env.P -test_env.unload_luarocks() - local extra_rocks = { "/say-1.2-1.src.rock", } describe("luarocks which #integration", function() - setup(function() + lazy_setup(function() test_env.setup_specs(extra_rocks) - test_env.unload_luarocks() -- need to be required here, because hardcoded is created after first loading of specs end) it("fails on missing arguments", function() -- cgit v1.2.3-55-g6feb