blob: 90efb5520a162cc20e1663923c02b9e0e9f5a6ad (
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
29
30
31
32
33
34
35
|
local test_env = require("spec.util.test_env")
local run = test_env.run
test_env.unload_luarocks()
local extra_rocks = {
"/lzlib-0.4.1.53-1.src.rock"
}
describe("LuaRocks search tests #integration", function()
before_each(function()
test_env.setup_specs(extra_rocks)
end)
it("LuaRocks search with no flags/arguments", function()
assert.is_false(run.luarocks_bool("search"))
end)
it("LuaRocks search zlib", function()
assert.is_true(run.luarocks_bool("search zlib"))
end)
it("LuaRocks search zlib 1.1", function()
assert.is_true(run.luarocks_bool("search zlib 1.1"))
end)
it("LuaRocks search missing rock", function()
assert.is_true(run.luarocks_bool("search missing_rock"))
end)
it("LuaRocks search with flag all", function()
assert.is_true(run.luarocks_bool("search --all"))
end)
end)
|