aboutsummaryrefslogtreecommitdiff
path: root/spec/which_spec.lua
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2024-02-26 18:30:31 -0300
committerHisham Muhammad <hisham@gobolinux.org>2024-02-27 13:28:33 -0300
commit03e401231972d7b4db0145a71ce74d5d18d1a901 (patch)
tree10e59cd4fe0065ec87db0699965bb5e2f0436d74 /spec/which_spec.lua
parent5b2e63e6b087bdf626dd7cef319d6ba29f5e197c (diff)
downloadluarocks-03e401231972d7b4db0145a71ce74d5d18d1a901.tar.gz
luarocks-03e401231972d7b4db0145a71ce74d5d18d1a901.tar.bz2
luarocks-03e401231972d7b4db0145a71ce74d5d18d1a901.zip
tests: reorganize and speed up unit tests
Diffstat (limited to 'spec/which_spec.lua')
-rw-r--r--spec/which_spec.lua5
1 files changed, 1 insertions, 4 deletions
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")
2local run = test_env.run 2local run = test_env.run
3local P = test_env.P 3local P = test_env.P
4 4
5test_env.unload_luarocks()
6
7local extra_rocks = { 5local extra_rocks = {
8 "/say-1.2-1.src.rock", 6 "/say-1.2-1.src.rock",
9} 7}
10 8
11describe("luarocks which #integration", function() 9describe("luarocks which #integration", function()
12 10
13 setup(function() 11 lazy_setup(function()
14 test_env.setup_specs(extra_rocks) 12 test_env.setup_specs(extra_rocks)
15 test_env.unload_luarocks() -- need to be required here, because hardcoded is created after first loading of specs
16 end) 13 end)
17 14
18 it("fails on missing arguments", function() 15 it("fails on missing arguments", function()