diff options
Diffstat (limited to 'spec/path_spec.lua')
| -rw-r--r-- | spec/path_spec.lua | 26 |
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 @@ | |||
| 1 | local test_env = require("test/test_environment") | ||
| 2 | local run = test_env.run | ||
| 3 | |||
| 4 | test_env.unload_luarocks() | ||
| 5 | |||
| 6 | describe("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) | ||
| 26 | end) | ||
