aboutsummaryrefslogtreecommitdiff
path: root/spec/path_spec.lua
blob: 266ada89f1bb5a3c6b81a90126ed775d1fddf65b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
local test_env = require("test/test_environment")
local lfs = require("lfs")

test_env.unload_luarocks()
local path = require("luarocks.path")

expose("LuaRocks path tests #blackbox #b_path", function()
   before_each(function()
      test_env.setup_specs(extra_rocks)
      run = test_env.run
   end)

   it("LuaRocks path bin", function()
      assert.is_true(run.luarocks_bool("path --bin"))
   end)

   it("LuaRocks path lr-path", function()
      assert.is_true(run.luarocks_bool("path --lr-path"))
   end)
   
   it("LuaRocks path lr-cpath", function()
      assert.is_true(run.luarocks_bool("path --lr-cpath"))
   end)
   
   it("LuaRocks path with tree", function()
      assert.is_true(run.luarocks_bool("path --tree=lua_modules"))
   end)
end)