aboutsummaryrefslogtreecommitdiff
path: root/spec/add_spec.lua
diff options
context:
space:
mode:
Diffstat (limited to 'spec/add_spec.lua')
-rw-r--r--spec/add_spec.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/add_spec.lua b/spec/add_spec.lua
index b0b3a171..ea6274ba 100644
--- a/spec/add_spec.lua
+++ b/spec/add_spec.lua
@@ -23,20 +23,20 @@ describe("LuaRocks add tests #integration", function()
23 it("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("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("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("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("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)