aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorV1K1NGbg <victor@ilchev.com>2024-08-07 01:16:41 +0300
committerV1K1NGbg <victor@ilchev.com>2024-08-07 01:16:41 +0300
commitb49baa4c0dd1584902dd904b740f4505eb9a7cb7 (patch)
treea1f60d2e233380de54dae3f83350316afcd2d7e5
parent6b082b37ecd2cef0f4b111640e63333463772909 (diff)
downloadluarocks-b49baa4c0dd1584902dd904b740f4505eb9a7cb7.tar.gz
luarocks-b49baa4c0dd1584902dd904b740f4505eb9a7cb7.tar.bz2
luarocks-b49baa4c0dd1584902dd904b740f4505eb9a7cb7.zip
rockspecs specs updated
-rw-r--r--spec/unit/rockspecs_spec.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/unit/rockspecs_spec.lua b/spec/unit/rockspecs_spec.lua
index 17284166..2357a2a1 100644
--- a/spec/unit/rockspecs_spec.lua
+++ b/spec/unit/rockspecs_spec.lua
@@ -55,7 +55,7 @@ describe("luarocks.rockspecs #unit", function()
55 55
56 assert(rockspec == out) 56 assert(rockspec == out)
57 57
58 assert.same(rockspec.build_dependencies, { {"luarocks-build-cpp"}, queries = { 58 assert.same(rockspec.build_dependencies, { "luarocks-build-cpp >= 1.0", queries = {
59 { name = "luarocks-build-cpp", constraints = { { op = ">=", version = { string = "1.0", 1, 0 } } } }, 59 { name = "luarocks-build-cpp", constraints = { { op = ">=", version = { string = "1.0", 1, 0 } } } },
60 }}) 60 }})
61 end) 61 end)
@@ -97,7 +97,7 @@ describe("luarocks.rockspecs #unit", function()
97 local out = rockspecs.from_persisted_table(filename, rockspec, globals, quick) 97 local out = rockspecs.from_persisted_table(filename, rockspec, globals, quick)
98 98
99 assert(rockspec == out) 99 assert(rockspec == out)
100 assert.same(rockspec.build_dependencies, {}) 100 assert.same(rockspec.build_dependencies, { queries = {}})
101 end) 101 end)
102 102
103 for d in lfs.dir(test_env.testing_paths.src_dir .. "/luarocks/build") do 103 for d in lfs.dir(test_env.testing_paths.src_dir .. "/luarocks/build") do
@@ -120,7 +120,7 @@ describe("luarocks.rockspecs #unit", function()
120 local out = rockspecs.from_persisted_table(filename, rockspec, globals, quick) 120 local out = rockspecs.from_persisted_table(filename, rockspec, globals, quick)
121 121
122 assert(rockspec == out) 122 assert(rockspec == out)
123 assert.same(rockspec.build_dependencies, {}) 123 assert.same(rockspec.build_dependencies, { queries = {}})
124 end) 124 end)
125 end 125 end
126 end 126 end