aboutsummaryrefslogtreecommitdiff
path: root/spec/add_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/add_spec.lua
parentab0d7b2a266ff7f322af93915472f5d80d4be9af (diff)
downloadluarocks-bd27d052eaf856bf24c77f556a50b7e19f11cba1.tar.gz
luarocks-bd27d052eaf856bf24c77f556a50b7e19f11cba1.tar.bz2
luarocks-bd27d052eaf856bf24c77f556a50b7e19f11cba1.zip
tests: shorter descriptions
Diffstat (limited to 'spec/add_spec.lua')
-rw-r--r--spec/add_spec.lua12
1 files changed, 6 insertions, 6 deletions
diff --git a/spec/add_spec.lua b/spec/add_spec.lua
index 394b8f8a..b0b3a171 100644
--- a/spec/add_spec.lua
+++ b/spec/add_spec.lua
@@ -16,28 +16,28 @@ describe("LuaRocks add tests #integration", function()
16 end) 16 end)
17 17
18 describe("LuaRocks-admin add tests", function() 18 describe("LuaRocks-admin add tests", function()
19 it("LuaRocks-admin add invalid rock #ssh", function() 19 it("invalid rock #ssh", function()
20 assert.is_false(run.luarocks_admin_bool("--server=testing add invalid")) 20 assert.is_false(run.luarocks_admin_bool("--server=testing add invalid"))
21 end) 21 end)
22 22
23 it("LuaRocks-admin add missing argument", function() 23 it("missing argument", function()
24 assert.is_false(run.luarocks_admin_bool("--server=testing add")) 24 assert.is_false(run.luarocks_admin_bool("--server=testing add"))
25 end) 25 end)
26 26
27 it("LuaRocks-admin add invalid server", function() 27 it("invalid server", function()
28 assert.is_false(run.luarocks_admin_bool("--server=invalid add " .. testing_paths.testing_server .. "/luasocket-3.0rc1-2.src.rock")) 28 assert.is_false(run.luarocks_admin_bool("--server=invalid add " .. testing_paths.testing_server .. "/luasocket-3.0rc1-2.src.rock"))
29 end) 29 end)
30 30
31 it("LuaRocks-admin add invalid server #ssh", function() 31 it("invalid server #ssh", function()
32 assert.is_true(run.luarocks_admin_bool("--server=testing add " .. testing_paths.testing_server .. "/luasocket-3.0rc1-2.src.rock")) 32 assert.is_true(run.luarocks_admin_bool("--server=testing add " .. testing_paths.testing_server .. "/luasocket-3.0rc1-2.src.rock"))
33 end) 33 end)
34 34
35 --TODO This test fails, sftp support not yet implemented 35 --TODO This test fails, sftp support not yet implemented
36 it("LuaRocks-admin add invalid server", function() 36 it("invalid server", function()
37 assert.is_false(run.luarocks_admin_bool("--server=testing add luasocket-3.0rc1-2.src.rock", { LUAROCKS_CONFIG = testing_paths.testrun_dir .. "/testing_config_sftp.lua" } )) 37 assert.is_false(run.luarocks_admin_bool("--server=testing add luasocket-3.0rc1-2.src.rock", { LUAROCKS_CONFIG = testing_paths.testrun_dir .. "/testing_config_sftp.lua" } ))
38 end) 38 end)
39 39
40 it("LuaRocks-admin add, split server url", function() 40 it("split server url", function()
41 assert.is_false(run.luarocks_admin_bool("--server=\"localhost@/tmp/luarocks_testing\" add " .. testing_paths.testing_server .. "/luasocket-3.0rc1-2.src.rock")) 41 assert.is_false(run.luarocks_admin_bool("--server=\"localhost@/tmp/luarocks_testing\" add " .. testing_paths.testing_server .. "/luasocket-3.0rc1-2.src.rock"))
42 end) 42 end)
43 end) 43 end)