aboutsummaryrefslogtreecommitdiff
path: root/spec/config_spec.lua
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2018-06-27 10:55:16 -0300
committerHisham Muhammad <hisham@gobolinux.org>2018-07-01 21:32:39 -0300
commit9404d59d48a511983ed30a6d0f605041a74ff332 (patch)
tree920340b4b019a2dff9c7eeaeab01314af386b547 /spec/config_spec.lua
parentb7680a66385dde34c8e8dbdeafc22156425cb38c (diff)
downloadluarocks-9404d59d48a511983ed30a6d0f605041a74ff332.tar.gz
luarocks-9404d59d48a511983ed30a6d0f605041a74ff332.tar.bz2
luarocks-9404d59d48a511983ed30a6d0f605041a74ff332.zip
Let LuaRocks find LUA_LIBDIR and LUA_INCDIR by itself
Diffstat (limited to 'spec/config_spec.lua')
-rw-r--r--spec/config_spec.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/config_spec.lua b/spec/config_spec.lua
index 825245b7..f415909d 100644
--- a/spec/config_spec.lua
+++ b/spec/config_spec.lua
@@ -20,14 +20,14 @@ describe("LuaRocks config tests #integration", function()
20 assert.match("rocks_servers", run.luarocks("config")) 20 assert.match("rocks_servers", run.luarocks("config"))
21 end) 21 end)
22 22
23 it("LuaRocks config include dir", function() 23 it("LuaRocks config include dir returns a subdir of LUA_DIR", function()
24 local output = run.luarocks("config --lua-incdir") 24 local output = run.luarocks("config --lua-incdir")
25 assert.are.same(hardcoded.LUA_INCDIR, output) 25 assert.match(hardcoded.LUA_DIR, output, 1, true)
26 end) 26 end)
27 27
28 it("LuaRocks config library dir", function() 28 it("LuaRocks config library dir returns a subdir of LUA_DIR", function()
29 local output = run.luarocks("config --lua-libdir") 29 local output = run.luarocks("config --lua-libdir")
30 assert.are.same(hardcoded.LUA_LIBDIR, output) 30 assert.match(hardcoded.LUA_DIR, output, 1, true)
31 end) 31 end)
32 32
33 it("LuaRocks config lua version", function() 33 it("LuaRocks config lua version", function()