From b096e35e29f5406f74c5cf7bdb86eff8ebf3b526 Mon Sep 17 00:00:00 2001 From: George Roman Date: Fri, 25 Jan 2019 13:24:30 +0200 Subject: Support installations without documentation --- spec/install_spec.lua | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'spec') diff --git a/spec/install_spec.lua b/spec/install_spec.lua index 0555155b..77ac6225 100644 --- a/spec/install_spec.lua +++ b/spec/install_spec.lua @@ -23,8 +23,6 @@ local extra_rocks = { "/wsapi-1.6-1.src.rock", "/luafilesystem-1.6.3-2.src.rock", "/luafilesystem-1.6.3-1.src.rock", - "/luacheck-0.7.3-1.src.rock", - "/luacheck-0.8.0-1.src.rock", "/sailor-0.5-3.src.rock", "/sailor-0.5-4.src.rock", } @@ -82,6 +80,12 @@ describe("luarocks install #integration", function() assert.is_true(run.luarocks_bool("install luasec " .. test_env.openssl_dirs)) assert.is_true(run.luarocks_bool("show luasocket")) end) + + it("installs a package without its documentation #only", function() + assert.is_true(run.luarocks_bool("install wsapi 1.6 --no-doc")) + assert.is_true(run.luarocks_bool("show wsapi 1.6")) + assert.is.falsy(lfs.attributes(testing_paths.testing_sys_rocks .. "/wsapi/1.6-1/doc")) + end) end) describe("#namespaces", function() -- cgit v1.2.3-55-g6feb