diff options
| author | roboo <robo.karasek@gmail.com> | 2016-07-19 22:56:28 +0200 |
|---|---|---|
| committer | roboo <robo.karasek@gmail.com> | 2016-07-19 22:56:28 +0200 |
| commit | 3945f90b0bd80024294b048a793bae526cad30e2 (patch) | |
| tree | c7658afc65573b60db6f94e0f4c9cbcb6fada343 /spec/upload_spec.lua | |
| parent | 2af8f114097b2e79d7f92f9b0cea4cacdc2ff853 (diff) | |
| download | luarocks-3945f90b0bd80024294b048a793bae526cad30e2.tar.gz luarocks-3945f90b0bd80024294b048a793bae526cad30e2.tar.bz2 luarocks-3945f90b0bd80024294b048a793bae526cad30e2.zip | |
Test improvements
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 02b68611..c68a1cdf 100644 --- a/spec/upload_spec.lua +++ b/spec/upload_spec.lua | |||
| @@ -53,7 +53,7 @@ describe("LuaRocks upload tests #blackbox #b_upload", function() | |||
| 53 | 53 | ||
| 54 | describe("LuaRocks upload tests with Xavante server #mock", function() | 54 | describe("LuaRocks upload tests with Xavante server #mock", function() |
| 55 | before_each(function() | 55 | before_each(function() |
| 56 | assert.is_true(test_env.need_rock("restserver-xavante")) | 56 | assert.is.truthy(test_env.need_rock("restserver-xavante")) |
| 57 | local final_command = test_env.execute_helper(testing_paths.lua .. " " .. testing_paths.testing_dir .. "/mock-server.lua &", true, test_env.env_variables) | 57 | local final_command = test_env.execute_helper(testing_paths.lua .. " " .. testing_paths.testing_dir .. "/mock-server.lua &", true, test_env.env_variables) |
| 58 | os.execute(final_command) | 58 | os.execute(final_command) |
| 59 | end) | 59 | end) |
| @@ -63,10 +63,10 @@ describe("LuaRocks upload tests #blackbox #b_upload", function() | |||
| 63 | end) | 63 | end) |
| 64 | 64 | ||
| 65 | it("LuaRocks upload rockspec with api-key", function() | 65 | it("LuaRocks upload rockspec with api-key", function() |
| 66 | assert.is_true(run.luarocks_bool("upload " .. testing_paths.testing_server .. "/luasocket-3.0rc1-1.rockspec --api-key=123", {LUAROCKS_CONFIG = testing_paths.testing_dir .. "/luarocks_site.lua"})) | 66 | assert.is_true(run.luarocks_bool("upload " .. testing_paths.testing_server .. "/luasocket-3.0rc1-2.rockspec --api-key=123", {LUAROCKS_CONFIG = testing_paths.testing_dir .. "/luarocks_site.lua"})) |
| 67 | end) | 67 | end) |
| 68 | it("LuaRocks upload rockspec with api-key and skip-pack", function() | 68 | it("LuaRocks upload rockspec with api-key and skip-pack", function() |
| 69 | assert.is_true(run.luarocks_bool("upload --skip-pack " .. testing_paths.testing_server .. "/luasocket-3.0rc1-1.rockspec --api-key=123", {LUAROCKS_CONFIG = testing_paths.testing_dir .. "/luarocks_site.lua"})) | 69 | assert.is_true(run.luarocks_bool("upload --skip-pack " .. testing_paths.testing_server .. "/luasocket-3.0rc1-2.rockspec --api-key=123", {LUAROCKS_CONFIG = testing_paths.testing_dir .. "/luarocks_site.lua"})) |
| 70 | end) | 70 | end) |
| 71 | end) | 71 | end) |
| 72 | end) | 72 | end) |
