diff options
Diffstat (limited to 'spec/new_version_spec.lua')
-rw-r--r-- | spec/new_version_spec.lua | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/spec/new_version_spec.lua b/spec/new_version_spec.lua index f8795db0..d47cfd05 100644 --- a/spec/new_version_spec.lua +++ b/spec/new_version_spec.lua | |||
@@ -7,7 +7,7 @@ test_env.unload_luarocks() | |||
7 | 7 | ||
8 | local extra_rocks = { | 8 | local extra_rocks = { |
9 | "/abelhas-1.1-1.rockspec", | 9 | "/abelhas-1.1-1.rockspec", |
10 | "/lpeg-0.12-1.rockspec" | 10 | "/lpeg-${LPEG}.rockspec" |
11 | } | 11 | } |
12 | 12 | ||
13 | describe("luarocks new_version #integration", function() | 13 | describe("luarocks new_version #integration", function() |
@@ -41,8 +41,8 @@ describe("luarocks new_version #integration", function() | |||
41 | 41 | ||
42 | describe("more complex tests", function() | 42 | describe("more complex tests", function() |
43 | it("of luacov", function() | 43 | it("of luacov", function() |
44 | assert.is_true(run.luarocks_bool("download --rockspec luacov 0.15.0")) | 44 | assert.is_true(run.luarocks_bool("download --rockspec luacov ${LUACOV_V}")) |
45 | assert.is_true(run.luarocks_bool("new_version luacov-0.15.0-1.rockspec 0.2")) | 45 | assert.is_true(run.luarocks_bool("new_version luacov-${LUACOV}.rockspec 0.2")) |
46 | assert.is.truthy(lfs.attributes("luacov-0.2-1.rockspec")) | 46 | assert.is.truthy(lfs.attributes("luacov-0.2-1.rockspec")) |
47 | test_env.remove_files(lfs.currentdir(), "luacov%-") | 47 | test_env.remove_files(lfs.currentdir(), "luacov%-") |
48 | end) | 48 | end) |
@@ -55,15 +55,15 @@ describe("luarocks new_version #integration", function() | |||
55 | end) | 55 | end) |
56 | 56 | ||
57 | it("of luacov with tag", function() | 57 | it("of luacov with tag", function() |
58 | assert.is_true(run.luarocks_bool("download --rockspec luacov 0.15.0")) | 58 | assert.is_true(run.luarocks_bool("download --rockspec luacov ${LUACOV_V}")) |
59 | assert.is_true(run.luarocks_bool("new_version luacov-0.15.0-1.rockspec --tag v0.3")) | 59 | assert.is_true(run.luarocks_bool("new_version luacov-${LUACOV}.rockspec --tag v0.3")) |
60 | assert.is.truthy(lfs.attributes("luacov-0.3-1.rockspec")) | 60 | assert.is.truthy(lfs.attributes("luacov-0.3-1.rockspec")) |
61 | test_env.remove_files(lfs.currentdir(), "luacov%-") | 61 | test_env.remove_files(lfs.currentdir(), "luacov%-") |
62 | end) | 62 | end) |
63 | 63 | ||
64 | it("updating md5", function() | 64 | it("updating md5", function() |
65 | assert.is_true(run.luarocks_bool("download --rockspec lpeg 0.12")) | 65 | assert.is_true(run.luarocks_bool("download --rockspec lpeg ${LPEG_V}")) |
66 | assert.is_true(run.luarocks_bool("new_version lpeg-0.12-1.rockspec 0.2 https://luarocks.org/manifests/gvvaughan/lpeg-1.0.0-1.rockspec")) | 66 | assert.is_true(run.luarocks_bool("new_version lpeg-${LPEG}.rockspec 0.2 https://luarocks.org/manifests/gvvaughan/lpeg-1.0.0-1.rockspec")) |
67 | test_env.remove_files(lfs.currentdir(), "lpeg%-") | 67 | test_env.remove_files(lfs.currentdir(), "lpeg%-") |
68 | end) | 68 | end) |
69 | end) | 69 | end) |