diff options
Diffstat (limited to 'spec')
-rw-r--r-- | spec/install_spec.lua | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/spec/install_spec.lua b/spec/install_spec.lua index 76dc2201..7370fef5 100644 --- a/spec/install_spec.lua +++ b/spec/install_spec.lua | |||
@@ -232,7 +232,16 @@ describe("luarocks install #integration", function() | |||
232 | assert.is_true(run.luarocks_bool("build --pack-binary-rock cprint")) | 232 | assert.is_true(run.luarocks_bool("build --pack-binary-rock cprint")) |
233 | assert.is_true(run.luarocks_bool("install cprint-0.1-2." .. test_env.platform .. ".rock")) | 233 | assert.is_true(run.luarocks_bool("install cprint-0.1-2." .. test_env.platform .. ".rock")) |
234 | assert.is_true(os.remove("cprint-0.1-2." .. test_env.platform .. ".rock")) | 234 | assert.is_true(os.remove("cprint-0.1-2." .. test_env.platform .. ".rock")) |
235 | end) | 235 | end) |
236 | |||
237 | it("accepts --no-manifest flag", function() | ||
238 | assert.is_true(run.luarocks_bool("install lxsh 0.8.6-2")) | ||
239 | assert.is.truthy(lfs.attributes(testing_paths.testing_sys_rocks .. "/manifest")) | ||
240 | assert.is.truthy(os.remove(testing_paths.testing_sys_rocks .. "/manifest")) | ||
241 | |||
242 | assert.is_true(run.luarocks_bool("install --no-manifest lxsh 0.8.6-2")) | ||
243 | assert.is.falsy(lfs.attributes(testing_paths.testing_sys_rocks .. "/manifest")) | ||
244 | end) | ||
236 | end) | 245 | end) |
237 | 246 | ||
238 | describe("New install functionality based on pull request 552", function() | 247 | describe("New install functionality based on pull request 552", function() |