aboutsummaryrefslogtreecommitdiff
path: root/spec/doc_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/doc_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/doc_spec.lua')
-rw-r--r--spec/doc_spec.lua4
1 files changed, 1 insertions, 3 deletions
diff --git a/spec/doc_spec.lua b/spec/doc_spec.lua
index a10bb501..062b36e7 100644
--- a/spec/doc_spec.lua
+++ b/spec/doc_spec.lua
@@ -2,8 +2,6 @@ local test_env = require("spec.util.test_env")
2local run = test_env.run 2local run = test_env.run
3local testing_paths = test_env.testing_paths 3local testing_paths = test_env.testing_paths
4 4
5test_env.unload_luarocks()
6
7describe("luarocks doc #integration", function() 5describe("luarocks doc #integration", function()
8 before_each(function() 6 before_each(function()
9 test_env.setup_specs() 7 test_env.setup_specs()
@@ -129,7 +127,7 @@ describe("luarocks doc #integration", function()
129 end) 127 end)
130 128
131 it("with --local", function() 129 it("with --local", function()
132 assert.is_true(run.luarocks_bool("install --server=" .. testing_paths.fixtures_dir .. "/a_repo a_rock")) 130 assert.is_true(run.luarocks_bool("install --local --server=" .. testing_paths.fixtures_dir .. "/a_repo a_rock"))
133 assert.is_true(run.luarocks_bool("doc --server=" .. testing_paths.fixtures_dir .. "/a_repo a_rock --local")) 131 assert.is_true(run.luarocks_bool("doc --server=" .. testing_paths.fixtures_dir .. "/a_repo a_rock --local"))
134 end) 132 end)
135 133