aboutsummaryrefslogtreecommitdiff
path: root/spec/download_spec.lua
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2020-02-14 09:53:12 -0300
committerHisham Muhammad <hisham@gobolinux.org>2020-02-14 09:53:12 -0300
commitbd27d052eaf856bf24c77f556a50b7e19f11cba1 (patch)
tree9812779fea52afea7dbbf15a21620d3c59102476 /spec/download_spec.lua
parentab0d7b2a266ff7f322af93915472f5d80d4be9af (diff)
downloadluarocks-bd27d052eaf856bf24c77f556a50b7e19f11cba1.tar.gz
luarocks-bd27d052eaf856bf24c77f556a50b7e19f11cba1.tar.bz2
luarocks-bd27d052eaf856bf24c77f556a50b7e19f11cba1.zip
tests: shorter descriptions
Diffstat (limited to 'spec/download_spec.lua')
-rw-r--r--spec/download_spec.lua10
1 files changed, 5 insertions, 5 deletions
diff --git a/spec/download_spec.lua b/spec/download_spec.lua
index 39f5b056..42f72008 100644
--- a/spec/download_spec.lua
+++ b/spec/download_spec.lua
@@ -9,27 +9,27 @@ local extra_rocks = {
9 "/validate-args-1.5.4-1.rockspec" 9 "/validate-args-1.5.4-1.rockspec"
10} 10}
11 11
12describe("LuaRocks download tests #integration", function() 12describe("luarocks download #integration", function()
13 13
14 before_each(function() 14 before_each(function()
15 test_env.setup_specs(extra_rocks) 15 test_env.setup_specs(extra_rocks)
16 end) 16 end)
17 17
18 it("LuaRocks download with no flags/arguments", function() 18 it("with no flags/arguments", function()
19 assert.is_false(run.luarocks_bool("download")) 19 assert.is_false(run.luarocks_bool("download"))
20 end) 20 end)
21 21
22 it("LuaRocks download invalid", function() 22 it("invalid", function()
23 assert.is_false(run.luarocks_bool("download invalid")) 23 assert.is_false(run.luarocks_bool("download invalid"))
24 end) 24 end)
25 25
26 it("LuaRocks download all with delete downloaded files", function() --TODO maybe download --all more rocks 26 it("all with delete downloaded files", function() --TODO maybe download --all more rocks
27 assert.is_true(run.luarocks_bool("download --all validate-args")) 27 assert.is_true(run.luarocks_bool("download --all validate-args"))
28 assert.is.truthy(lfs.attributes("validate-args-1.5.4-1.rockspec")) 28 assert.is.truthy(lfs.attributes("validate-args-1.5.4-1.rockspec"))
29 test_env.remove_files(lfs.currentdir(), "validate--args--") 29 test_env.remove_files(lfs.currentdir(), "validate--args--")
30 end) 30 end)
31 31
32 it("LuaRocks download rockspec version", function() 32 it("rockspec version", function()
33 assert.is_true(run.luarocks_bool("download --rockspec validate-args 1.5.4-1")) 33 assert.is_true(run.luarocks_bool("download --rockspec validate-args 1.5.4-1"))
34 assert.is.truthy(lfs.attributes("validate-args-1.5.4-1.rockspec")) 34 assert.is.truthy(lfs.attributes("validate-args-1.5.4-1.rockspec"))
35 test_env.remove_files(lfs.currentdir(), "validate--args--") 35 test_env.remove_files(lfs.currentdir(), "validate--args--")