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.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/upload_spec.lua b/spec/upload_spec.lua
index b8e147e0..3adfa2dd 100644
--- a/spec/upload_spec.lua
+++ b/spec/upload_spec.lua
@@ -1,4 +1,4 @@
1local test_env = require("test/test_environment") 1local test_env = require("spec.util.test_env")
2local run = test_env.run 2local run = test_env.run
3local testing_paths = test_env.testing_paths 3local testing_paths = test_env.testing_paths
4 4
@@ -39,10 +39,10 @@ describe("LuaRocks upload tests #blackbox #b_upload", function()
39 after_each(test_env.mock_server_done) 39 after_each(test_env.mock_server_done)
40 40
41 it("LuaRocks upload rockspec with api-key", function() 41 it("LuaRocks upload rockspec with api-key", function()
42 assert.is_true(run.luarocks_bool("upload " .. testing_paths.testing_dir .. "/testfiles/a_rock-1.0-1.rockspec " .. test_env.OPENSSL_DIRS .. " --api-key=123", {LUAROCKS_CONFIG = testing_paths.testing_dir .. "/luarocks_site.lua"})) 42 assert.is_true(run.luarocks_bool("upload " .. testing_paths.fixtures_dir .. "/a_rock-1.0-1.rockspec " .. test_env.OPENSSL_DIRS .. " --api-key=123", {LUAROCKS_CONFIG = testing_paths.testrun_dir .. "/luarocks_site.lua"}))
43 end) 43 end)
44 it("LuaRocks upload rockspec with api-key and skip-pack", function() 44 it("LuaRocks upload rockspec with api-key and skip-pack", function()
45 assert.is_true(run.luarocks_bool("upload --skip-pack " .. testing_paths.testing_dir .. "/testfiles/a_rock-1.0-1.rockspec " .. test_env.OPENSSL_DIRS .. " --api-key=123", {LUAROCKS_CONFIG = testing_paths.testing_dir .. "/luarocks_site.lua"})) 45 assert.is_true(run.luarocks_bool("upload --skip-pack " .. testing_paths.fixtures_dir .. "/a_rock-1.0-1.rockspec " .. test_env.OPENSSL_DIRS .. " --api-key=123", {LUAROCKS_CONFIG = testing_paths.testrun_dir .. "/luarocks_site.lua"}))
46 end) 46 end)
47 end) 47 end)
48end) 48end)