diff options
Diffstat (limited to 'spec/config_spec.lua')
-rw-r--r-- | spec/config_spec.lua | 8 |
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() |