aboutsummaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2018-04-12 17:29:21 -0300
committerHisham Muhammad <hisham@gobolinux.org>2018-04-13 17:11:12 -0300
commit6bab7030971e07cb8950cb829cef58ba5debe792 (patch)
tree08e5cbaa1e3f59c276e1a9ff19f7cb2587e8b46f /spec
parent2871199838131b5a4c5a99d8e1fedbcd26017b0e (diff)
downloadluarocks-6bab7030971e07cb8950cb829cef58ba5debe792.tar.gz
luarocks-6bab7030971e07cb8950cb829cef58ba5debe792.tar.bz2
luarocks-6bab7030971e07cb8950cb829cef58ba5debe792.zip
Support build_dependencies in the show command
Diffstat (limited to 'spec')
-rw-r--r--spec/show_spec.lua11
1 files changed, 11 insertions, 0 deletions
diff --git a/spec/show_spec.lua b/spec/show_spec.lua
index abf9a93b..4880106d 100644
--- a/spec/show_spec.lua
+++ b/spec/show_spec.lua
@@ -77,4 +77,15 @@ describe("LuaRocks show #blackbox #b_show", function()
77 run.luarocks("install luacov 0.11.0") 77 run.luarocks("install luacov 0.11.0")
78 run.luarocks_bool("show luacov 0.11.0") 78 run.luarocks_bool("show luacov 0.11.0")
79 end) 79 end)
80
81 it("shows #build_dependencies", function()
82 assert(run.luarocks_bool("install has_build_dep --server=" .. testing_paths.fixtures_dir .. "/a_repo" ))
83 assert.match("a_build_dep", run.luarocks("show has_build_dep"))
84 end)
85
86 it("gets #build_dependencies via --build-deps", function()
87 assert(run.luarocks_bool("install has_build_dep --server=" .. testing_paths.fixtures_dir .. "/a_repo" ))
88 assert.match("a_build_dep", run.luarocks("show has_build_dep --build-deps"))
89 end)
90
80end) 91end)