aboutsummaryrefslogtreecommitdiff
path: root/spec/path_spec.lua
diff options
context:
space:
mode:
authorHisham <hisham@gobolinux.org>2016-07-28 17:24:15 -0300
committerHisham <hisham@gobolinux.org>2016-07-28 17:24:15 -0300
commitaccce73cf90bde70baa3d8101b76ca56b0cb0720 (patch)
tree705bb1ba44cd07f9b701cb8d6cf969d7bb48fd72 /spec/path_spec.lua
parent5f5b26206068ba597091bb6fc22d8d63c0fef408 (diff)
parent67a737310b31eed8d1c38eb0e34ff4b6fc411731 (diff)
downloadluarocks-accce73cf90bde70baa3d8101b76ca56b0cb0720.tar.gz
luarocks-accce73cf90bde70baa3d8101b76ca56b0cb0720.tar.bz2
luarocks-accce73cf90bde70baa3d8101b76ca56b0cb0720.zip
Merge branch 'master' into luarocks-3
Diffstat (limited to 'spec/path_spec.lua')
-rw-r--r--spec/path_spec.lua26
1 files changed, 26 insertions, 0 deletions
diff --git a/spec/path_spec.lua b/spec/path_spec.lua
new file mode 100644
index 00000000..22f07591
--- /dev/null
+++ b/spec/path_spec.lua
@@ -0,0 +1,26 @@
1local test_env = require("test/test_environment")
2local run = test_env.run
3
4test_env.unload_luarocks()
5
6describe("LuaRocks path tests #blackbox #b_path", function()
7 before_each(function()
8 test_env.setup_specs()
9 end)
10
11 it("LuaRocks path bin", function()
12 assert.is_true(run.luarocks_bool("path --bin"))
13 end)
14
15 it("LuaRocks path lr-path", function()
16 assert.is_true(run.luarocks_bool("path --lr-path"))
17 end)
18
19 it("LuaRocks path lr-cpath", function()
20 assert.is_true(run.luarocks_bool("path --lr-cpath"))
21 end)
22
23 it("LuaRocks path with tree", function()
24 assert.is_true(run.luarocks_bool("path --tree=lua_modules"))
25 end)
26end)