diff options
Diffstat (limited to 'spec/path_spec.lua')
| -rw-r--r-- | spec/path_spec.lua | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/spec/path_spec.lua b/spec/path_spec.lua new file mode 100644 index 00000000..266ada89 --- /dev/null +++ b/spec/path_spec.lua | |||
| @@ -0,0 +1,28 @@ | |||
| 1 | local test_env = require("test/test_environment") | ||
| 2 | local lfs = require("lfs") | ||
| 3 | |||
| 4 | test_env.unload_luarocks() | ||
| 5 | local path = require("luarocks.path") | ||
| 6 | |||
| 7 | expose("LuaRocks path tests #blackbox #b_path", function() | ||
| 8 | before_each(function() | ||
| 9 | test_env.setup_specs(extra_rocks) | ||
| 10 | run = test_env.run | ||
| 11 | end) | ||
| 12 | |||
| 13 | it("LuaRocks path bin", function() | ||
| 14 | assert.is_true(run.luarocks_bool("path --bin")) | ||
| 15 | end) | ||
| 16 | |||
| 17 | it("LuaRocks path lr-path", function() | ||
| 18 | assert.is_true(run.luarocks_bool("path --lr-path")) | ||
| 19 | end) | ||
| 20 | |||
| 21 | it("LuaRocks path lr-cpath", function() | ||
| 22 | assert.is_true(run.luarocks_bool("path --lr-cpath")) | ||
| 23 | end) | ||
| 24 | |||
| 25 | it("LuaRocks path with tree", function() | ||
| 26 | assert.is_true(run.luarocks_bool("path --tree=lua_modules")) | ||
| 27 | end) | ||
| 28 | end) | ||
