aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Melnichenko <mpeterval@gmail.com>2017-09-11 13:05:20 +0300
committerPeter Melnichenko <mpeterval@gmail.com>2017-09-11 13:05:20 +0300
commit714d887f99dad19d406de36e6d9d88739066f4f1 (patch)
tree448620a6d539f55e4a72c2c0ffb3c1babb1b8faa
parent8b2dfe0b6861c3cea22078f78f6c3d9cc6cd733f (diff)
downloadluarocks-714d887f99dad19d406de36e6d9d88739066f4f1.tar.gz
luarocks-714d887f99dad19d406de36e6d9d88739066f4f1.tar.bz2
luarocks-714d887f99dad19d406de36e6d9d88739066f4f1.zip
Pass correct rockspec to upload tests that should fail for other reasons
Most tests simply check that some command succeeds or fails. When failure is expected, failure reason is not checked. In this case, upload commands was failing because passed rockspec did not exist and not for reason tests planned.
-rw-r--r--spec/upload_spec.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/upload_spec.lua b/spec/upload_spec.lua
index ff39cb96..cd175730 100644
--- a/spec/upload_spec.lua
+++ b/spec/upload_spec.lua
@@ -42,12 +42,12 @@ describe("LuaRocks upload tests #blackbox #b_upload", function()
42 end) 42 end)
43 43
44 it("LuaRocks upload api key invalid and skip-pack", function() 44 it("LuaRocks upload api key invalid and skip-pack", function()
45 assert.is_false(run.luarocks_bool("upload --api-key=\"invalid\" --skip-pack luacov-0.11.0-1.rockspec")) 45 assert.is_false(run.luarocks_bool("upload --api-key=\"invalid\" --skip-pack " .. testing_paths.testing_server .. "/luasocket-3.0rc1-2.rockspec"))
46 end) 46 end)
47 47
48 it("LuaRocks upload force #unix", function() 48 it("LuaRocks upload force #unix", function()
49 assert.is_true(run.luarocks_bool("install lua-cjson")) 49 assert.is_true(run.luarocks_bool("install lua-cjson"))
50 assert.is_false(run.luarocks_bool("upload --api-key=\"invalid\" --force luacov-0.11.0-1.rockspec")) 50 assert.is_false(run.luarocks_bool("upload --api-key=\"invalid\" --force " .. testing_paths.testing_server .. "/luasocket-3.0rc1-2.rockspec"))
51 assert.is_true(run.luarocks_bool("install lua-cjson")) 51 assert.is_true(run.luarocks_bool("install lua-cjson"))
52 end) 52 end)
53 53