diff options
Diffstat (limited to 'spec/list_spec.lua')
| -rw-r--r-- | spec/list_spec.lua | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/spec/list_spec.lua b/spec/list_spec.lua index d6aeef38..f11c884d 100644 --- a/spec/list_spec.lua +++ b/spec/list_spec.lua | |||
| @@ -25,10 +25,17 @@ describe("LuaRocks list tests #blackbox #b_list", function() | |||
| 25 | assert.is.truthy(output:find("luacov\t0.11.0-1\tinstalled\t" .. testing_paths.testing_sys_rocks, 1, true)) | 25 | assert.is.truthy(output:find("luacov\t0.11.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() | ||
| 29 | local output = run.luarocks("list") | ||
| 30 | assert.is.truthy(output:find("luacov")) | ||
| 31 | assert.matches("0.11.0-1", output, 1, true) | ||
| 32 | end) | ||
| 33 | |||
| 28 | it("LuaRocks install outdated and list it", function() | 34 | it("LuaRocks install outdated and list it", function() |
| 29 | assert.is_true(run.luarocks_bool("install say 1.0-1")) | 35 | assert.is_true(run.luarocks_bool("install say 1.0-1")) |
| 30 | local output = run.luarocks("list --outdated") | 36 | local output = run.luarocks("list --outdated") |
| 31 | assert.is.truthy(output:find("say")) | 37 | assert.is.truthy(output:find("say")) |
| 38 | assert.matches("1.0-1 < 1.2-1", output, 1, true) | ||
| 32 | end) | 39 | end) |
| 33 | 40 | ||
| 34 | it("LuaRocks list invalid tree", function() | 41 | it("LuaRocks list invalid tree", function() |
