aboutsummaryrefslogtreecommitdiff
path: root/spec/upload_spec.lua
diff options
context:
space:
mode:
Diffstat (limited to 'spec/upload_spec.lua')
-rw-r--r--spec/upload_spec.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/upload_spec.lua b/spec/upload_spec.lua
index dc073c18..e1215d2c 100644
--- a/spec/upload_spec.lua
+++ b/spec/upload_spec.lua
@@ -17,15 +17,15 @@ describe("luarocks upload #integration", function()
17 it("invalid rockspec", function() 17 it("invalid rockspec", function()
18 assert.is_false(run.luarocks_bool("upload invalid.rockspec")) 18 assert.is_false(run.luarocks_bool("upload invalid.rockspec"))
19 end) 19 end)
20 20
21 it("api key invalid", function() 21 it("api key invalid", function()
22 assert.is_false(run.luarocks_bool("upload --api-key=invalid invalid.rockspec")) 22 assert.is_false(run.luarocks_bool("upload --api-key=invalid invalid.rockspec"))
23 end) 23 end)
24 24
25 it("api key invalid and skip-pack", function() 25 it("api key invalid and skip-pack", function()
26 assert.is_false(run.luarocks_bool("upload --api-key=\"invalid\" --skip-pack " .. testing_paths.testing_server .. "/luasocket-3.0rc1-2.rockspec")) 26 assert.is_false(run.luarocks_bool("upload --api-key=\"invalid\" --skip-pack " .. testing_paths.testing_server .. "/luasocket-3.0rc1-2.rockspec"))
27 end) 27 end)
28 28
29 it("force #unix", function() 29 it("force #unix", function()
30 assert.is_true(test_env.need_rock("dkjson")) 30 assert.is_true(test_env.need_rock("dkjson"))
31 assert.is_false(run.luarocks_bool("upload --api-key=\"invalid\" --force " .. testing_paths.testing_server .. "/luasocket-3.0rc1-2.rockspec")) 31 assert.is_false(run.luarocks_bool("upload --api-key=\"invalid\" --force " .. testing_paths.testing_server .. "/luasocket-3.0rc1-2.rockspec"))
@@ -33,7 +33,7 @@ describe("luarocks upload #integration", function()
33 33
34 describe("tests with Xavante server #mock", function() 34 describe("tests with Xavante server #mock", function()
35 before_each(test_env.mock_server_init) 35 before_each(test_env.mock_server_init)
36 36
37 after_each(test_env.mock_server_done) 37 after_each(test_env.mock_server_done)
38 38
39 it("rockspec with api-key", function() 39 it("rockspec with api-key", function()