diff options
| author | George Roman <george.roman.99@gmail.com> | 2019-01-25 13:24:30 +0200 |
|---|---|---|
| committer | Hisham Muhammad <hisham@gobolinux.org> | 2019-02-12 19:29:40 -0200 |
| commit | b096e35e29f5406f74c5cf7bdb86eff8ebf3b526 (patch) | |
| tree | c23ccb6e85fb8d5e94c12021e2c5d0ebc3b3c01a /spec | |
| parent | 28f1f87879aac1ae3d6e296b30c3c93be84741ce (diff) | |
| download | luarocks-b096e35e29f5406f74c5cf7bdb86eff8ebf3b526.tar.gz luarocks-b096e35e29f5406f74c5cf7bdb86eff8ebf3b526.tar.bz2 luarocks-b096e35e29f5406f74c5cf7bdb86eff8ebf3b526.zip | |
Support installations without documentation
Diffstat (limited to 'spec')
| -rw-r--r-- | spec/install_spec.lua | 8 |
1 files changed, 6 insertions, 2 deletions
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 = { | |||
| 23 | "/wsapi-1.6-1.src.rock", | 23 | "/wsapi-1.6-1.src.rock", |
| 24 | "/luafilesystem-1.6.3-2.src.rock", | 24 | "/luafilesystem-1.6.3-2.src.rock", |
| 25 | "/luafilesystem-1.6.3-1.src.rock", | 25 | "/luafilesystem-1.6.3-1.src.rock", |
| 26 | "/luacheck-0.7.3-1.src.rock", | ||
| 27 | "/luacheck-0.8.0-1.src.rock", | ||
| 28 | "/sailor-0.5-3.src.rock", | 26 | "/sailor-0.5-3.src.rock", |
| 29 | "/sailor-0.5-4.src.rock", | 27 | "/sailor-0.5-4.src.rock", |
| 30 | } | 28 | } |
| @@ -82,6 +80,12 @@ describe("luarocks install #integration", function() | |||
| 82 | assert.is_true(run.luarocks_bool("install luasec " .. test_env.openssl_dirs)) | 80 | assert.is_true(run.luarocks_bool("install luasec " .. test_env.openssl_dirs)) |
| 83 | assert.is_true(run.luarocks_bool("show luasocket")) | 81 | assert.is_true(run.luarocks_bool("show luasocket")) |
| 84 | end) | 82 | end) |
| 83 | |||
| 84 | it("installs a package without its documentation #only", function() | ||
| 85 | assert.is_true(run.luarocks_bool("install wsapi 1.6 --no-doc")) | ||
| 86 | assert.is_true(run.luarocks_bool("show wsapi 1.6")) | ||
| 87 | assert.is.falsy(lfs.attributes(testing_paths.testing_sys_rocks .. "/wsapi/1.6-1/doc")) | ||
| 88 | end) | ||
| 85 | end) | 89 | end) |
| 86 | 90 | ||
| 87 | describe("#namespaces", function() | 91 | describe("#namespaces", function() |
