diff options
Diffstat (limited to 'spec/list_spec.lua')
-rw-r--r-- | spec/list_spec.lua | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/spec/list_spec.lua b/spec/list_spec.lua index 8e05c064..20af7164 100644 --- a/spec/list_spec.lua +++ b/spec/list_spec.lua | |||
@@ -9,23 +9,23 @@ local extra_rocks = { | |||
9 | "/say-1.2-1.src.rock" | 9 | "/say-1.2-1.src.rock" |
10 | } | 10 | } |
11 | 11 | ||
12 | describe("LuaRocks list tests #integration", function() | 12 | describe("luarocks list #integration", function() |
13 | 13 | ||
14 | before_each(function() | 14 | before_each(function() |
15 | test_env.setup_specs(extra_rocks) | 15 | test_env.setup_specs(extra_rocks) |
16 | end) | 16 | end) |
17 | 17 | ||
18 | it("LuaRocks list with no flags/arguments", function() | 18 | it("with no flags/arguments", function() |
19 | local output = run.luarocks("list") | 19 | local output = run.luarocks("list") |
20 | assert.match("luacov", output) | 20 | assert.match("luacov", output) |
21 | end) | 21 | end) |
22 | 22 | ||
23 | it("LuaRocks list porcelain", function() | 23 | it("--porcelain", function() |
24 | local output = run.luarocks("list --porcelain") | 24 | local output = run.luarocks("list --porcelain") |
25 | assert.is.truthy(output:find("luacov\t0.13.0-1\tinstalled\t" .. testing_paths.testing_sys_rocks, 1, true)) | 25 | assert.is.truthy(output:find("luacov\t0.13.0-1\tinstalled\t" .. testing_paths.testing_sys_rocks, 1, true)) |
26 | end) | 26 | end) |
27 | 27 | ||
28 | it("LuaRocks list shows version number", function() | 28 | it("shows version number", function() |
29 | local output = run.luarocks("list") | 29 | local output = run.luarocks("list") |
30 | assert.is.truthy(output:find("luacov")) | 30 | assert.is.truthy(output:find("luacov")) |
31 | assert.matches("0.13.0-1", output, 1, true) | 31 | assert.matches("0.13.0-1", output, 1, true) |
@@ -38,7 +38,7 @@ describe("LuaRocks list tests #integration", function() | |||
38 | assert.matches("1.0-1 < ", output, 1, true) | 38 | assert.matches("1.0-1 < ", output, 1, true) |
39 | end) | 39 | end) |
40 | 40 | ||
41 | it("LuaRocks list invalid tree", function() | 41 | it("invalid tree", function() |
42 | local output = run.luarocks("--tree=/some/invalid/tree list") | 42 | local output = run.luarocks("--tree=/some/invalid/tree list") |
43 | assert(output:find("Rocks installed for Lua "..test_env.lua_version.." in /some/invalid/tree", 1, true)) | 43 | assert(output:find("Rocks installed for Lua "..test_env.lua_version.." in /some/invalid/tree", 1, true)) |
44 | end) | 44 | end) |