diff options
Diffstat (limited to 'spec/doc_spec.lua')
-rw-r--r-- | spec/doc_spec.lua | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/doc_spec.lua b/spec/doc_spec.lua index 5f503af2..6d91fc00 100644 --- a/spec/doc_spec.lua +++ b/spec/doc_spec.lua | |||
@@ -38,6 +38,14 @@ describe("LuaRocks doc tests #blackbox #b_doc", function() | |||
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) |
40 | end) | 40 | end) |
41 | |||
42 | describe("#namespaces", function() | ||
43 | it("retrieves docs for a namespaced package from the command-line", function() | ||
44 | assert(run.luarocks_bool("build a_user/a_rock --server=" .. testing_paths.fixtures_dir .. "/a_repo" )) | ||
45 | assert(run.luarocks_bool("build a_rock --keep --server=" .. testing_paths.fixtures_dir .. "/a_repo" )) | ||
46 | assert.match("a_rock 2.0", run.luarocks("doc a_user/a_rock")) | ||
47 | end) | ||
48 | end) | ||
41 | 49 | ||
42 | describe("LuaRocks doc tests with flags", function() | 50 | describe("LuaRocks doc tests with flags", function() |
43 | it("LuaRocks doc of installed luarepl", function() | 51 | it("LuaRocks doc of installed luarepl", function() |