diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2017-10-04 11:14:42 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-04 11:14:42 -0300 |
commit | 84b4fe99cac37850a97858e0b641043bd3178d8a (patch) | |
tree | b4578689091b8360aed71f531faf2513b7d41684 /spec/doc_spec.lua | |
parent | 100c18d048936b5a47f29f55e6ce8b24277fb70f (diff) | |
download | luarocks-84b4fe99cac37850a97858e0b641043bd3178d8a.tar.gz luarocks-84b4fe99cac37850a97858e0b641043bd3178d8a.tar.bz2 luarocks-84b4fe99cac37850a97858e0b641043bd3178d8a.zip |
Use versioned files only. (#734)
Let's take the opportunity of a new major version to make an important cleanup: getting rid of the error-prone unversioned configuration files. This drops support for:
* Unversioned config.lua -> use config-5.x.lua
* Unversioned luarocks/site_config.lua -> it always generates luarocks/core/site_config_5_x.lua
* Unversioned lib/luarocks/rocks -> it always uses lib/luarocks/rocks-5.x
Diffstat (limited to 'spec/doc_spec.lua')
-rw-r--r-- | spec/doc_spec.lua | 6 |
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() |