From 6bab7030971e07cb8950cb829cef58ba5debe792 Mon Sep 17 00:00:00 2001 From: Hisham Muhammad <hisham@gobolinux.org> Date: Thu, 12 Apr 2018 17:29:21 -0300 Subject: Support build_dependencies in the show command --- spec/show_spec.lua | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'spec') 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() run.luarocks("install luacov 0.11.0") run.luarocks_bool("show luacov 0.11.0") end) + + it("shows #build_dependencies", function() + assert(run.luarocks_bool("install has_build_dep --server=" .. testing_paths.fixtures_dir .. "/a_repo" )) + assert.match("a_build_dep", run.luarocks("show has_build_dep")) + end) + + it("gets #build_dependencies via --build-deps", function() + assert(run.luarocks_bool("install has_build_dep --server=" .. testing_paths.fixtures_dir .. "/a_repo" )) + assert.match("a_build_dep", run.luarocks("show has_build_dep --build-deps")) + end) + end) -- cgit v1.2.3-55-g6feb