aboutsummaryrefslogtreecommitdiff
path: root/spec/show_spec.lua
diff options
context:
space:
mode:
Diffstat (limited to 'spec/show_spec.lua')
-rw-r--r--spec/show_spec.lua20
1 files changed, 10 insertions, 10 deletions
diff --git a/spec/show_spec.lua b/spec/show_spec.lua
index e4937157..380c2441 100644
--- a/spec/show_spec.lua
+++ b/spec/show_spec.lua
@@ -5,7 +5,7 @@ local testing_paths = test_env.testing_paths
5test_env.unload_luarocks() 5test_env.unload_luarocks()
6 6
7describe("luarocks show #integration", function() 7describe("luarocks show #integration", function()
8 8
9 before_each(function() 9 before_each(function()
10 test_env.setup_specs() 10 test_env.setup_specs()
11 end) 11 end)
@@ -13,12 +13,12 @@ describe("luarocks show #integration", function()
13 it("with no flags/arguments", function() 13 it("with no flags/arguments", function()
14 assert.is_false(run.luarocks_bool("show")) 14 assert.is_false(run.luarocks_bool("show"))
15 end) 15 end)
16 16
17 describe("basic tests with flags", function() 17 describe("basic tests with flags", function()
18 it("invalid", function() 18 it("invalid", function()
19 assert.is_false(run.luarocks_bool("show invalid")) 19 assert.is_false(run.luarocks_bool("show invalid"))
20 end) 20 end)
21 21
22 it("luacov", function() 22 it("luacov", function()
23 local output = run.luarocks("show luacov") 23 local output = run.luarocks("show luacov")
24 assert.is.truthy(output:match("LuaCov")) 24 assert.is.truthy(output:match("LuaCov"))
@@ -28,12 +28,12 @@ describe("luarocks show #integration", function()
28 local output = run.luarocks("show LuaCov") 28 local output = run.luarocks("show LuaCov")
29 assert.is.truthy(output:match("LuaCov")) 29 assert.is.truthy(output:match("LuaCov"))
30 end) 30 end)
31 31
32 it("modules of luacov", function() 32 it("modules of luacov", function()
33 local output = run.luarocks("show --modules luacov") 33 local output = run.luarocks("show --modules luacov")
34 assert.match("luacov.*luacov.defaults.*luacov.reporter.*luacov.reporter.default.*luacov.runner.*luacov.stats.*luacov.tick", output) 34 assert.match("luacov.*luacov.defaults.*luacov.reporter.*luacov.reporter.default.*luacov.runner.*luacov.stats.*luacov.tick", output)
35 end) 35 end)
36 36
37 it("--deps", function() 37 it("--deps", function()
38 assert(run.luarocks_bool("build has_namespaced_dep --server=" .. testing_paths.fixtures_dir .. "/a_repo" )) 38 assert(run.luarocks_bool("build has_namespaced_dep --server=" .. testing_paths.fixtures_dir .. "/a_repo" ))
39 local output = run.luarocks("show --deps has_namespaced_dep") 39 local output = run.luarocks("show --deps has_namespaced_dep")
@@ -45,21 +45,21 @@ describe("luarocks show #integration", function()
45 local output = run.luarocks("show has_namespaced_dep") 45 local output = run.luarocks("show has_namespaced_dep")
46 assert.match("a_user/a_rock.*2.0", output) 46 assert.match("a_user/a_rock.*2.0", output)
47 end) 47 end)
48 48
49 it("rockspec of luacov", function() 49 it("rockspec of luacov", function()
50 local output = run.luarocks("show --rockspec luacov") 50 local output = run.luarocks("show --rockspec luacov")
51 assert.is.truthy(output:match("luacov--0.13.0--1.rockspec")) 51 assert.is.truthy(output:match("luacov--0.13.0--1.rockspec"))
52 end) 52 end)
53 53
54 it("mversion of luacov", function() 54 it("mversion of luacov", function()
55 local output = run.luarocks("show --mversion luacov") 55 local output = run.luarocks("show --mversion luacov")
56 assert.is.truthy(output:match("0.13.0--1")) 56 assert.is.truthy(output:match("0.13.0--1"))
57 end) 57 end)
58 58
59 it("rock tree of luacov", function() 59 it("rock tree of luacov", function()
60 local output = run.luarocks("show --rock-tree luacov") 60 local output = run.luarocks("show --rock-tree luacov")
61 end) 61 end)
62 62
63 it("rock directory of luacov", function() 63 it("rock directory of luacov", function()
64 local output = run.luarocks("show --rock-dir luacov") 64 local output = run.luarocks("show --rock-dir luacov")
65 end) 65 end)
@@ -67,7 +67,7 @@ describe("luarocks show #integration", function()
67 it("issues URL of luacov", function() 67 it("issues URL of luacov", function()
68 local output = run.luarocks("show --issues luacov") 68 local output = run.luarocks("show --issues luacov")
69 end) 69 end)
70 70
71 it("labels of luacov", function() 71 it("labels of luacov", function()
72 local output = run.luarocks("show --labels luacov") 72 local output = run.luarocks("show --labels luacov")
73 end) 73 end)