diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2022-04-11 19:16:10 -0300 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2022-04-12 13:19:12 -0300 |
commit | 238ba6b21cfcb1af56f1e70dd50de201fc3482a7 (patch) | |
tree | c948b6d3e12e3a518a69d0c844e016c590b31825 /spec/upload_spec.lua | |
parent | df8a3cd3c957db337bfc3ab4d404c33066a24923 (diff) | |
download | luarocks-238ba6b21cfcb1af56f1e70dd50de201fc3482a7.tar.gz luarocks-238ba6b21cfcb1af56f1e70dd50de201fc3482a7.tar.bz2 luarocks-238ba6b21cfcb1af56f1e70dd50de201fc3482a7.zip |
tests: avoid repeated hardcoded package version numbers all over
Diffstat (limited to 'spec/upload_spec.lua')
-rw-r--r-- | spec/upload_spec.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/upload_spec.lua b/spec/upload_spec.lua index 73775992..73f26cd7 100644 --- a/spec/upload_spec.lua +++ b/spec/upload_spec.lua | |||
@@ -23,12 +23,12 @@ describe("luarocks upload #integration", function() | |||
23 | end) | 23 | end) |
24 | 24 | ||
25 | it("api key invalid and skip-pack", function() | 25 | it("api key invalid and skip-pack", function() |
26 | assert.is_false(run.luarocks_bool("upload --api-key=\"invalid\" --skip-pack " .. testing_paths.testing_server .. "/luasocket-3.0rc1-2.rockspec")) | 26 | assert.is_false(run.luarocks_bool("upload --api-key=\"invalid\" --skip-pack " .. testing_paths.testing_server .. "/luasocket-${LUASOCKET}.rockspec")) |
27 | end) | 27 | end) |
28 | 28 | ||
29 | it("force #unix", function() | 29 | it("force #unix", function() |
30 | assert.is_true(test_env.need_rock("dkjson")) | 30 | assert.is_true(test_env.need_rock("dkjson")) |
31 | assert.is_false(run.luarocks_bool("upload --api-key=\"invalid\" --force " .. testing_paths.testing_server .. "/luasocket-3.0rc1-2.rockspec")) | 31 | assert.is_false(run.luarocks_bool("upload --api-key=\"invalid\" --force " .. testing_paths.testing_server .. "/luasocket-${LUASOCKET}.rockspec")) |
32 | end) | 32 | end) |
33 | 33 | ||
34 | describe("tests with Xavante server #mock", function() | 34 | describe("tests with Xavante server #mock", function() |