diff options
Diffstat (limited to 'spec/upload_spec.lua')
-rw-r--r-- | spec/upload_spec.lua | 6 |
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 @@ | |||
1 | local test_env = require("test/test_environment") | 1 | local test_env = require("spec.util.test_env") |
2 | local run = test_env.run | 2 | local run = test_env.run |
3 | local testing_paths = test_env.testing_paths | 3 | local 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) |
48 | end) | 48 | end) |