diff options
Diffstat (limited to 'spec/show_spec.lua')
| -rw-r--r-- | spec/show_spec.lua | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/spec/show_spec.lua b/spec/show_spec.lua index f528a6de..915129ae 100644 --- a/spec/show_spec.lua +++ b/spec/show_spec.lua | |||
| @@ -20,10 +20,12 @@ describe("LuaRocks show tests #blackbox #b_show", function() | |||
| 20 | 20 | ||
| 21 | it("LuaRocks show luacov", function() | 21 | it("LuaRocks show luacov", function() |
| 22 | local output = run.luarocks("show luacov") | 22 | local output = run.luarocks("show luacov") |
| 23 | assert.is.truthy(output:match("LuaCov")) | ||
| 23 | end) | 24 | end) |
| 24 | 25 | ||
| 25 | it("LuaRocks show modules of luacov", function() | 26 | it("LuaRocks show modules of luacov", function() |
| 26 | local output = run.luarocks("show --modules luacov") | 27 | local output = run.luarocks("show --modules luacov") |
| 28 | assert.is.truthy(output:match("luacovluacov.defaultsluacov.reporterluacov.reporter.defaultluacov.runnerluacov.statsluacov.tick")) | ||
| 27 | end) | 29 | end) |
| 28 | 30 | ||
| 29 | it("LuaRocks show dependencies of luacov", function() | 31 | it("LuaRocks show dependencies of luacov", function() |
| @@ -32,10 +34,12 @@ describe("LuaRocks show tests #blackbox #b_show", function() | |||
| 32 | 34 | ||
| 33 | it("LuaRocks show rockspec of luacov", function() | 35 | it("LuaRocks show rockspec of luacov", function() |
| 34 | local output = run.luarocks("show --rockspec luacov") | 36 | local output = run.luarocks("show --rockspec luacov") |
| 37 | assert.is.truthy(output:match("luacov-0.11.0-1.rockspec")) | ||
| 35 | end) | 38 | end) |
| 36 | 39 | ||
| 37 | it("LuaRocks show mversion of luacov", function() | 40 | it("LuaRocks show mversion of luacov", function() |
| 38 | local output = run.luarocks("show --mversion luacov") | 41 | local output = run.luarocks("show --mversion luacov") |
| 42 | assert.is.truthy(output:match("0.11.0--1")) | ||
| 39 | end) | 43 | end) |
| 40 | 44 | ||
| 41 | it("LuaRocks show rock tree of luacov", function() | 45 | it("LuaRocks show rock tree of luacov", function() |
| @@ -49,6 +53,6 @@ describe("LuaRocks show tests #blackbox #b_show", function() | |||
| 49 | 53 | ||
| 50 | it("LuaRocks show old version of luacov", function() | 54 | it("LuaRocks show old version of luacov", function() |
| 51 | run.luarocks("install luacov 0.11.0") | 55 | run.luarocks("install luacov 0.11.0") |
| 52 | run.luarocks("show luacov 0.11.0") | 56 | run.luarocks_bool("show luacov 0.11.0") |
| 53 | end) | 57 | end) |
| 54 | end) | 58 | end) |
