aboutsummaryrefslogtreecommitdiff
path: root/spec/doc_spec.lua
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--spec/doc_spec.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/doc_spec.lua b/spec/doc_spec.lua
index a04d3c14..ea42cd6b 100644
--- a/spec/doc_spec.lua
+++ b/spec/doc_spec.lua
@@ -28,12 +28,12 @@ describe("LuaRocks doc tests #blackbox #b_doc", function()
28 end) 28 end)
29 it("LuaRocks doc with no home page and no doc folder", function() 29 it("LuaRocks doc with no home page and no doc folder", function()
30 assert.is_true(run.luarocks_bool("install c3")) 30 assert.is_true(run.luarocks_bool("install c3"))
31 test_env.remove_dir(testing_paths.testing_sys_tree .. "/lib/luarocks/rocks/c3/1.0-1/doc") 31 test_env.remove_dir(testing_paths.testing_sys_rocks .. "/c3/1.0-1/doc")
32 assert.is_false(run.luarocks_bool("doc c3")) 32 assert.is_false(run.luarocks_bool("doc c3"))
33 end) 33 end)
34 it("LuaRocks doc with no doc folder opening descript.homepage", function() 34 it("LuaRocks doc with no doc folder opening descript.homepage", function()
35 assert.is_true(run.luarocks_bool("install luarepl")) 35 assert.is_true(run.luarocks_bool("install luarepl"))
36 test_env.remove_dir(testing_paths.testing_sys_tree .. "/lib/luarocks/rocks/luarepl/0.4-1/doc") 36 test_env.remove_dir(testing_paths.testing_sys_rocks .. "/luarepl/0.4-1/doc")
37 local output = run.luarocks("doc luarepl") 37 local output = run.luarocks("doc luarepl")
38 assert.is.truthy(output:find("Local documentation directory not found")) 38 assert.is.truthy(output:find("Local documentation directory not found"))
39 end) 39 end)
@@ -53,7 +53,7 @@ describe("LuaRocks doc tests #blackbox #b_doc", function()
53 it("LuaRocks doc of luacov and list doc folder", function() 53 it("LuaRocks doc of luacov and list doc folder", function()
54 assert.is_true(run.luarocks_bool("install luacov")) 54 assert.is_true(run.luarocks_bool("install luacov"))
55 local output = assert.is.truthy(run.luarocks("doc luacov --list")) 55 local output = assert.is.truthy(run.luarocks("doc luacov --list"))
56 assert.is.truthy(output:find("/lib/luarocks/rocks/luacov/0.11.0--1/doc/")) 56 assert.is.truthy(output:find("/lib/luarocks/rocks%-.*/luacov/0.11.0%-1/doc/", 1))
57 end) 57 end)
58 58
59 it("LuaRocks doc of luacov local", function() 59 it("LuaRocks doc of luacov local", function()