diff options
author | daurnimator <quae@daurnimator.com> | 2019-10-19 10:34:19 +0200 |
---|---|---|
committer | daurnimator <quae@daurnimator.com> | 2019-11-30 15:52:37 +1100 |
commit | 27c09f27b22b26463e7e6b47431d539c7e496c6e (patch) | |
tree | dee213251215ab07f6226a58c6a32dd12fe4303d /spec | |
parent | acf8bcb82ae697a5bac94bfbe93c3ad9d7487795 (diff) | |
download | luarocks-27c09f27b22b26463e7e6b47431d539c7e496c6e.tar.gz luarocks-27c09f27b22b26463e7e6b47431d539c7e496c6e.tar.bz2 luarocks-27c09f27b22b26463e7e6b47431d539c7e496c6e.zip |
Add --no-manifest flag to skip creating/updating a global manifest
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() |