From 7c09d1c22cf14ff088b9de4ab214164818fba28a Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Thu, 19 Apr 2018 18:15:22 -0300 Subject: luarocks list: fix regression in display of version numbers --- spec/list_spec.lua | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'spec') 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() assert.is.truthy(output:find("luacov\t0.11.0-1\tinstalled\t" .. testing_paths.testing_sys_rocks, 1, true)) end) + it("LuaRocks list shows version number", function() + local output = run.luarocks("list") + assert.is.truthy(output:find("luacov")) + assert.matches("0.11.0-1", output, 1, true) + end) + it("LuaRocks install outdated and list it", function() assert.is_true(run.luarocks_bool("install say 1.0-1")) local output = run.luarocks("list --outdated") assert.is.truthy(output:find("say")) + assert.matches("1.0-1 < 1.2-1", output, 1, true) end) it("LuaRocks list invalid tree", function() -- cgit v1.2.3-55-g6feb