diff options
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() |