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/build_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/build_spec.lua')
-rw-r--r-- | spec/build_spec.lua | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/spec/build_spec.lua b/spec/build_spec.lua index a970a5da..ba6c1a94 100644 --- a/spec/build_spec.lua +++ b/spec/build_spec.lua | |||
@@ -19,9 +19,9 @@ local extra_rocks = { | |||
19 | "/lmathx-20150505-1.rockspec", | 19 | "/lmathx-20150505-1.rockspec", |
20 | "/lpeg-1.0.0-1.rockspec", | 20 | "/lpeg-1.0.0-1.rockspec", |
21 | "/lpeg-1.0.0-1.src.rock", | 21 | "/lpeg-1.0.0-1.src.rock", |
22 | "/luafilesystem-1.6.3-1.src.rock", | 22 | "/luafilesystem-${LUAFILESYSTEM}.src.rock", |
23 | "/luasocket-3.0rc1-2.src.rock", | 23 | "/luasocket-${LUASOCKET}.src.rock", |
24 | "/luasocket-3.0rc1-2.rockspec", | 24 | "/luasocket-${LUASOCKET}.rockspec", |
25 | "/stdlib-41.0.0-1.src.rock", | 25 | "/stdlib-41.0.0-1.src.rock", |
26 | "spec/fixtures/a_rock-1.0-1.src.rock", | 26 | "spec/fixtures/a_rock-1.0-1.src.rock", |
27 | "/busted-2.0.0-1.rockspec", | 27 | "/busted-2.0.0-1.rockspec", |
@@ -137,8 +137,8 @@ describe("LuaRocks build #integration", function() | |||
137 | 137 | ||
138 | describe("basic builds", function() | 138 | describe("basic builds", function() |
139 | it("luacov diff version", function() | 139 | it("luacov diff version", function() |
140 | assert.is_true(run.luarocks_bool("build luacov 0.15.0-1")) | 140 | assert.is_true(run.luarocks_bool("build luacov ${LUACOV}")) |
141 | assert.is.truthy(lfs.attributes(testing_paths.testing_sys_rocks .. "/luacov/0.15.0-1/luacov-0.15.0-1.rockspec")) | 141 | assert.is.truthy(lfs.attributes(testing_paths.testing_sys_rocks .. "/luacov/${LUACOV}/luacov-${LUACOV}.rockspec")) |
142 | end) | 142 | end) |
143 | 143 | ||
144 | it("command stdlib", function() | 144 | it("command stdlib", function() |