diff options
| author | Hisham Muhammad <hisham@gobolinux.org> | 2020-02-14 09:53:12 -0300 |
|---|---|---|
| committer | Hisham Muhammad <hisham@gobolinux.org> | 2020-02-14 09:53:12 -0300 |
| commit | bd27d052eaf856bf24c77f556a50b7e19f11cba1 (patch) | |
| tree | 9812779fea52afea7dbbf15a21620d3c59102476 /spec/util_spec.lua | |
| parent | ab0d7b2a266ff7f322af93915472f5d80d4be9af (diff) | |
| download | luarocks-bd27d052eaf856bf24c77f556a50b7e19f11cba1.tar.gz luarocks-bd27d052eaf856bf24c77f556a50b7e19f11cba1.tar.bz2 luarocks-bd27d052eaf856bf24c77f556a50b7e19f11cba1.zip | |
tests: shorter descriptions
Diffstat (limited to 'spec/util_spec.lua')
| -rw-r--r-- | spec/util_spec.lua | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/spec/util_spec.lua b/spec/util_spec.lua index b1693cfa..3970a57c 100644 --- a/spec/util_spec.lua +++ b/spec/util_spec.lua | |||
| @@ -9,15 +9,15 @@ describe("Basic tests #integration", function() | |||
| 9 | test_env.setup_specs() | 9 | test_env.setup_specs() |
| 10 | end) | 10 | end) |
| 11 | 11 | ||
| 12 | it("LuaRocks version", function() | 12 | it("--version", function() |
| 13 | assert.is_true(run.luarocks_bool("--version")) | 13 | assert.is_true(run.luarocks_bool("--version")) |
| 14 | end) | 14 | end) |
| 15 | 15 | ||
| 16 | it("LuaRocks unknown command", function() | 16 | it("unknown command", function() |
| 17 | assert.is_false(run.luarocks_bool("unknown_command")) | 17 | assert.is_false(run.luarocks_bool("unknown_command")) |
| 18 | end) | 18 | end) |
| 19 | 19 | ||
| 20 | it("LuaRocks arguments fail", function() | 20 | it("arguments fail", function() |
| 21 | assert.is_false(run.luarocks_bool("--porcelain=invalid")) | 21 | assert.is_false(run.luarocks_bool("--porcelain=invalid")) |
| 22 | assert.is_false(run.luarocks_bool("--invalid-flag")) | 22 | assert.is_false(run.luarocks_bool("--invalid-flag")) |
| 23 | assert.is_false(run.luarocks_bool("--server")) | 23 | assert.is_false(run.luarocks_bool("--server")) |
| @@ -26,7 +26,7 @@ describe("Basic tests #integration", function() | |||
| 26 | assert.is_false(run.luarocks_bool("invalid=5")) | 26 | assert.is_false(run.luarocks_bool("invalid=5")) |
| 27 | end) | 27 | end) |
| 28 | 28 | ||
| 29 | it("LuaRocks execute from not existing directory #unix", function() | 29 | it("executing from not existing directory #unix", function() |
| 30 | local main_path = lfs.currentdir() | 30 | local main_path = lfs.currentdir() |
| 31 | assert.is_true(lfs.mkdir("idontexist")) | 31 | assert.is_true(lfs.mkdir("idontexist")) |
| 32 | assert.is_true(lfs.chdir("idontexist")) | 32 | assert.is_true(lfs.chdir("idontexist")) |
| @@ -41,15 +41,15 @@ describe("Basic tests #integration", function() | |||
| 41 | assert.is.truthy(output:find("the Lua package manager")) | 41 | assert.is.truthy(output:find("the Lua package manager")) |
| 42 | end) | 42 | end) |
| 43 | 43 | ||
| 44 | it("LuaRocks timeout", function() | 44 | it("--timeout", function() |
| 45 | assert.is.truthy(run.luarocks("--timeout=10")) | 45 | assert.is.truthy(run.luarocks("--timeout=10")) |
| 46 | end) | 46 | end) |
| 47 | 47 | ||
| 48 | it("LuaRocks timeout invalid", function() | 48 | it("--timeout invalid", function() |
| 49 | assert.is_false(run.luarocks_bool("--timeout=abc")) | 49 | assert.is_false(run.luarocks_bool("--timeout=abc")) |
| 50 | end) | 50 | end) |
| 51 | 51 | ||
| 52 | it("LuaRocks only server=testing", function() | 52 | it("--only-server", function() |
| 53 | assert.is.truthy(run.luarocks("--only-server=testing")) | 53 | assert.is.truthy(run.luarocks("--only-server=testing")) |
| 54 | end) | 54 | end) |
| 55 | 55 | ||
| @@ -59,7 +59,7 @@ test_env.unload_luarocks() | |||
| 59 | local util = require("luarocks.util") | 59 | local util = require("luarocks.util") |
| 60 | local core_util = require("luarocks.core.util") | 60 | local core_util = require("luarocks.core.util") |
| 61 | 61 | ||
| 62 | describe("Luarocks util test #unit", function() | 62 | describe("luarocks.util #unit", function() |
| 63 | local runner | 63 | local runner |
| 64 | 64 | ||
| 65 | setup(function() | 65 | setup(function() |
