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/remove_spec.lua | |
parent | ab0d7b2a266ff7f322af93915472f5d80d4be9af (diff) | |
download | luarocks-bd27d052eaf856bf24c77f556a50b7e19f11cba1.tar.gz luarocks-bd27d052eaf856bf24c77f556a50b7e19f11cba1.tar.bz2 luarocks-bd27d052eaf856bf24c77f556a50b7e19f11cba1.zip |
tests: shorter descriptions
Diffstat (limited to 'spec/remove_spec.lua')
-rw-r--r-- | spec/remove_spec.lua | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/spec/remove_spec.lua b/spec/remove_spec.lua index cc9eb599..cdac5c01 100644 --- a/spec/remove_spec.lua +++ b/spec/remove_spec.lua | |||
@@ -12,37 +12,37 @@ local extra_rocks = { | |||
12 | "/coxpcall-1.16.0-1.rockspec" | 12 | "/coxpcall-1.16.0-1.rockspec" |
13 | } | 13 | } |
14 | 14 | ||
15 | describe("LuaRocks remove tests #integration", function() | 15 | describe("luarocks remove #integration", function() |
16 | 16 | ||
17 | before_each(function() | 17 | before_each(function() |
18 | test_env.setup_specs(extra_rocks) | 18 | test_env.setup_specs(extra_rocks) |
19 | end) | 19 | end) |
20 | 20 | ||
21 | describe("LuaRocks remove basic tests", function() | 21 | describe("basic tests", function() |
22 | it("LuaRocks remove with no flags/arguments", function() | 22 | it("with no flags/arguments", function() |
23 | assert.is_false(run.luarocks_bool("remove")) | 23 | assert.is_false(run.luarocks_bool("remove")) |
24 | end) | 24 | end) |
25 | 25 | ||
26 | it("LuaRocks remove invalid rock", function() | 26 | it("invalid rock", function() |
27 | assert.is_false(run.luarocks_bool("remove invalid.rock")) | 27 | assert.is_false(run.luarocks_bool("remove invalid.rock")) |
28 | end) | 28 | end) |
29 | 29 | ||
30 | it("LuaRocks remove missing rock", function() | 30 | it("missing rock", function() |
31 | assert.is_false(run.luarocks_bool("remove missing_rock")) | 31 | assert.is_false(run.luarocks_bool("remove missing_rock")) |
32 | end) | 32 | end) |
33 | 33 | ||
34 | it("LuaRocks remove invalid argument", function() | 34 | it("invalid argument", function() |
35 | assert.is_false(run.luarocks_bool("remove luacov --deps-mode")) | 35 | assert.is_false(run.luarocks_bool("remove luacov --deps-mode")) |
36 | end) | 36 | end) |
37 | 37 | ||
38 | it("LuaRocks remove built abelhas", function() | 38 | it("built abelhas", function() |
39 | assert.is_true(run.luarocks_bool("build abelhas 1.1")) | 39 | assert.is_true(run.luarocks_bool("build abelhas 1.1")) |
40 | assert.is.truthy(lfs.attributes(testing_paths.testing_sys_rocks .. "/abelhas")) | 40 | assert.is.truthy(lfs.attributes(testing_paths.testing_sys_rocks .. "/abelhas")) |
41 | assert.is_true(run.luarocks_bool("remove abelhas 1.1")) | 41 | assert.is_true(run.luarocks_bool("remove abelhas 1.1")) |
42 | assert.is.falsy(lfs.attributes(testing_paths.testing_sys_rocks .. "/abelhas")) | 42 | assert.is.falsy(lfs.attributes(testing_paths.testing_sys_rocks .. "/abelhas")) |
43 | end) | 43 | end) |
44 | 44 | ||
45 | it("LuaRocks remove built abelhas with uppercase name", function() | 45 | it("built abelhas with uppercase name", function() |
46 | assert.is_true(run.luarocks_bool("build abelhas 1.1")) | 46 | assert.is_true(run.luarocks_bool("build abelhas 1.1")) |
47 | assert.is.truthy(lfs.attributes(testing_paths.testing_sys_rocks .. "/abelhas")) | 47 | assert.is.truthy(lfs.attributes(testing_paths.testing_sys_rocks .. "/abelhas")) |
48 | assert.is_true(run.luarocks_bool("remove Abelhas 1.1")) | 48 | assert.is_true(run.luarocks_bool("remove Abelhas 1.1")) |
@@ -50,12 +50,12 @@ describe("LuaRocks remove tests #integration", function() | |||
50 | end) | 50 | end) |
51 | end) | 51 | end) |
52 | 52 | ||
53 | describe("LuaRocks remove more complex tests", function() | 53 | describe("more complex tests", function() |
54 | before_each(function() | 54 | before_each(function() |
55 | assert.is.truthy(test_env.need_rock("coxpcall")) | 55 | assert.is.truthy(test_env.need_rock("coxpcall")) |
56 | end) | 56 | end) |
57 | 57 | ||
58 | it("LuaRocks remove fail, break dependencies", function() | 58 | it("fail, break dependencies", function() |
59 | assert.is.truthy(lfs.attributes(testing_paths.testing_sys_rocks .. "/coxpcall")) | 59 | assert.is.truthy(lfs.attributes(testing_paths.testing_sys_rocks .. "/coxpcall")) |
60 | assert.is_true(run.luarocks_bool("build copas")) | 60 | assert.is_true(run.luarocks_bool("build copas")) |
61 | 61 | ||
@@ -63,7 +63,7 @@ describe("LuaRocks remove tests #integration", function() | |||
63 | assert.is.truthy(lfs.attributes(testing_paths.testing_sys_rocks .. "/coxpcall")) | 63 | assert.is.truthy(lfs.attributes(testing_paths.testing_sys_rocks .. "/coxpcall")) |
64 | end) | 64 | end) |
65 | 65 | ||
66 | it("LuaRocks remove force", function() | 66 | it("force", function() |
67 | assert.is.truthy(lfs.attributes(testing_paths.testing_sys_rocks .. "/coxpcall")) | 67 | assert.is.truthy(lfs.attributes(testing_paths.testing_sys_rocks .. "/coxpcall")) |
68 | assert.is_true(run.luarocks_bool("build copas")) | 68 | assert.is_true(run.luarocks_bool("build copas")) |
69 | 69 | ||
@@ -72,7 +72,7 @@ describe("LuaRocks remove tests #integration", function() | |||
72 | assert.is.truthy(output:find("Checking stability of dependencies")) | 72 | assert.is.truthy(output:find("Checking stability of dependencies")) |
73 | end) | 73 | end) |
74 | 74 | ||
75 | it("LuaRocks remove force fast", function() | 75 | it("force fast", function() |
76 | assert.is.truthy(lfs.attributes(testing_paths.testing_sys_rocks .. "/coxpcall")) | 76 | assert.is.truthy(lfs.attributes(testing_paths.testing_sys_rocks .. "/coxpcall")) |
77 | assert.is_true(run.luarocks_bool("build copas")) | 77 | assert.is_true(run.luarocks_bool("build copas")) |
78 | 78 | ||