diff options
Diffstat (limited to 'spec')
-rw-r--r-- | spec/upload_spec.lua | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/spec/upload_spec.lua b/spec/upload_spec.lua index cd175730..8b3e0433 100644 --- a/spec/upload_spec.lua +++ b/spec/upload_spec.lua | |||
@@ -5,8 +5,6 @@ local testing_paths = test_env.testing_paths | |||
5 | test_env.unload_luarocks() | 5 | test_env.unload_luarocks() |
6 | 6 | ||
7 | local extra_rocks = { | 7 | local extra_rocks = { |
8 | "/lua-cjson-2.1.0-1.src.rock", | ||
9 | |||
10 | -- rocks needed for mock-server | 8 | -- rocks needed for mock-server |
11 | "/copas-2.0.1-1.src.rock", | 9 | "/copas-2.0.1-1.src.rock", |
12 | "/coxpcall-1.16.0-1.src.rock", | 10 | "/coxpcall-1.16.0-1.src.rock", |
@@ -46,9 +44,8 @@ describe("LuaRocks upload tests #blackbox #b_upload", function() | |||
46 | end) | 44 | end) |
47 | 45 | ||
48 | it("LuaRocks upload force #unix", function() | 46 | it("LuaRocks upload force #unix", function() |
49 | assert.is_true(run.luarocks_bool("install lua-cjson")) | 47 | assert.is_true(test_env.need_rock("dkjson")) |
50 | assert.is_false(run.luarocks_bool("upload --api-key=\"invalid\" --force " .. testing_paths.testing_server .. "/luasocket-3.0rc1-2.rockspec")) | 48 | 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")) | ||
52 | end) | 49 | end) |
53 | 50 | ||
54 | describe("LuaRocks upload tests with Xavante server #mock", function() | 51 | describe("LuaRocks upload tests with Xavante server #mock", function() |