aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorV1K1NGbg <victor@ilchev.com>2024-08-07 01:10:53 +0300
committerV1K1NGbg <victor@ilchev.com>2024-08-07 01:10:53 +0300
commit6b082b37ecd2cef0f4b111640e63333463772909 (patch)
tree672903356c97677cc2029bc4eb0af2cf1878d55b
parent5f741e4edda066043934588dfdfa4198971ec194 (diff)
downloadluarocks-6b082b37ecd2cef0f4b111640e63333463772909.tar.gz
luarocks-6b082b37ecd2cef0f4b111640e63333463772909.tar.bz2
luarocks-6b082b37ecd2cef0f4b111640e63333463772909.zip
rockspecs specs
-rw-r--r--spec/unit/rockspecs_spec.lua10
1 files changed, 6 insertions, 4 deletions
diff --git a/spec/unit/rockspecs_spec.lua b/spec/unit/rockspecs_spec.lua
index 7eb033c8..17284166 100644
--- a/spec/unit/rockspecs_spec.lua
+++ b/spec/unit/rockspecs_spec.lua
@@ -28,7 +28,9 @@ describe("luarocks.rockspecs #unit", function()
28 28
29 assert(rockspec == out) 29 assert(rockspec == out)
30 assert.same(rockspec.build_dependencies, { 30 assert.same(rockspec.build_dependencies, {
31 { name = "luarocks-build-foo", constraints = {} }, 31 queries = {
32 { name = "luarocks-build-foo", constraints = {} }
33 },
32 }) 34 })
33 end) 35 end)
34 36
@@ -53,9 +55,9 @@ describe("luarocks.rockspecs #unit", function()
53 55
54 assert(rockspec == out) 56 assert(rockspec == out)
55 57
56 assert.same(rockspec.build_dependencies, { 58 assert.same(rockspec.build_dependencies, { {"luarocks-build-cpp"}, queries = {
57 { 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 } } } },
58 }) 60 }})
59 end) 61 end)
60 62
61 it("does not add a build dependency for 'none' build type", function() 63 it("does not add a build dependency for 'none' build type", function()
@@ -75,7 +77,7 @@ describe("luarocks.rockspecs #unit", function()
75 local out = rockspecs.from_persisted_table(filename, rockspec, globals, quick) 77 local out = rockspecs.from_persisted_table(filename, rockspec, globals, quick)
76 78
77 assert(rockspec == out) 79 assert(rockspec == out)
78 assert.same(rockspec.build_dependencies, {}) 80 assert.same(rockspec.build_dependencies, { queries = {}})
79 end) 81 end)
80 82
81 it("does not add a build dependency for 'module' build type", function() 83 it("does not add a build dependency for 'module' build type", function()