diff options
| author | Hisham Muhammad <hisham@gobolinux.org> | 2021-03-16 13:36:26 -0300 |
|---|---|---|
| committer | Hisham Muhammad <hisham@gobolinux.org> | 2021-03-16 16:32:45 -0300 |
| commit | 8f3ce333e7a1abfc6bf0488817d9eff4a2fd443f (patch) | |
| tree | f05d1a49995341a56e602ce2a3256b89372e9d04 /spec/install_spec.lua | |
| parent | 2b56388e76952be52d849415b1ebae74b6dc4607 (diff) | |
| download | luarocks-8f3ce333e7a1abfc6bf0488817d9eff4a2fd443f.tar.gz luarocks-8f3ce333e7a1abfc6bf0488817d9eff4a2fd443f.tar.bz2 luarocks-8f3ce333e7a1abfc6bf0488817d9eff4a2fd443f.zip | |
editorconfig: trim trailing whitespace
Diffstat (limited to 'spec/install_spec.lua')
| -rw-r--r-- | spec/install_spec.lua | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/spec/install_spec.lua b/spec/install_spec.lua index 78b4b28d..9bc94eb6 100644 --- a/spec/install_spec.lua +++ b/spec/install_spec.lua | |||
| @@ -46,7 +46,7 @@ describe("luarocks install #integration", function() | |||
| 46 | 46 | ||
| 47 | it("fails invalid patch", function() | 47 | it("fails invalid patch", function() |
| 48 | assert.is_false(run.luarocks_bool("install " .. testing_paths.fixtures_dir .. "/invalid_patch-0.1-1.rockspec")) | 48 | assert.is_false(run.luarocks_bool("install " .. testing_paths.fixtures_dir .. "/invalid_patch-0.1-1.rockspec")) |
| 49 | end) | 49 | end) |
| 50 | 50 | ||
| 51 | it("fails invalid rock", function() | 51 | it("fails invalid rock", function() |
| 52 | assert.is_false(run.luarocks_bool("install \"invalid.rock\" ")) | 52 | assert.is_false(run.luarocks_bool("install \"invalid.rock\" ")) |
| @@ -101,7 +101,7 @@ describe("luarocks install #integration", function() | |||
| 101 | assert.is.falsy(lfs.attributes(testing_paths.testing_sys_rocks .. "/wsapi/1.6-1/doc")) | 101 | assert.is.falsy(lfs.attributes(testing_paths.testing_sys_rocks .. "/wsapi/1.6-1/doc")) |
| 102 | end) | 102 | end) |
| 103 | end) | 103 | end) |
| 104 | 104 | ||
| 105 | describe("#namespaces", function() | 105 | describe("#namespaces", function() |
| 106 | it("installs a namespaced package from the command-line", function() | 106 | it("installs a namespaced package from the command-line", function() |
| 107 | assert(run.luarocks_bool("install a_user/a_rock --server=" .. testing_paths.fixtures_dir .. "/a_repo" )) | 107 | assert(run.luarocks_bool("install a_user/a_rock --server=" .. testing_paths.fixtures_dir .. "/a_repo" )) |
| @@ -191,7 +191,7 @@ describe("luarocks install #integration", function() | |||
| 191 | assert.is.truthy(lfs.attributes(testing_paths.testing_sys_tree .. "/share/lua/"..env_variables.LUA_VERSION.."/sailor/blank-app/.htaccess")) | 191 | assert.is.truthy(lfs.attributes(testing_paths.testing_sys_tree .. "/share/lua/"..env_variables.LUA_VERSION.."/sailor/blank-app/.htaccess")) |
| 192 | assert.is.falsy(lfs.attributes(testing_paths.testing_sys_tree .. "/share/lua/"..env_variables.LUA_VERSION.."/sailor/blank-app/.htaccess~")) | 192 | assert.is.falsy(lfs.attributes(testing_paths.testing_sys_tree .. "/share/lua/"..env_variables.LUA_VERSION.."/sailor/blank-app/.htaccess~")) |
| 193 | end) | 193 | end) |
| 194 | 194 | ||
| 195 | it("only-deps of luasocket packed rock", function() | 195 | it("only-deps of luasocket packed rock", function() |
| 196 | assert.is_true(run.luarocks_bool("build --pack-binary-rock luasocket 3.0rc1-2")) | 196 | assert.is_true(run.luarocks_bool("build --pack-binary-rock luasocket 3.0rc1-2")) |
| 197 | local output = run.luarocks("install --only-deps " .. "luasocket-3.0rc1-2." .. test_env.platform .. ".rock") | 197 | local output = run.luarocks("install --only-deps " .. "luasocket-3.0rc1-2." .. test_env.platform .. ".rock") |
| @@ -256,20 +256,20 @@ describe("luarocks install #integration", function() | |||
| 256 | end) | 256 | end) |
| 257 | 257 | ||
| 258 | describe("New install functionality based on pull request 552", function() | 258 | describe("New install functionality based on pull request 552", function() |
| 259 | it("break dependencies warning", function() | 259 | it("break dependencies warning", function() |
| 260 | assert.is_true(run.luarocks_bool("install say 1.2")) | 260 | assert.is_true(run.luarocks_bool("install say 1.2")) |
| 261 | assert.is_true(run.luarocks_bool("install luassert")) | 261 | assert.is_true(run.luarocks_bool("install luassert")) |
| 262 | assert.is_true(run.luarocks_bool("install say 1.0")) | 262 | assert.is_true(run.luarocks_bool("install say 1.0")) |
| 263 | assert.is.truthy(lfs.attributes(testing_paths.testing_sys_rocks .. "/say/1.2-1")) | 263 | assert.is.truthy(lfs.attributes(testing_paths.testing_sys_rocks .. "/say/1.2-1")) |
| 264 | end) | 264 | end) |
| 265 | it("break dependencies force", function() | 265 | it("break dependencies force", function() |
| 266 | assert.is_true(run.luarocks_bool("install say 1.2")) | 266 | assert.is_true(run.luarocks_bool("install say 1.2")) |
| 267 | assert.is_true(run.luarocks_bool("install luassert")) | 267 | assert.is_true(run.luarocks_bool("install luassert")) |
| 268 | local output = run.luarocks("install --force say 1.0") | 268 | local output = run.luarocks("install --force say 1.0") |
| 269 | assert.is.truthy(output:find("Checking stability of dependencies")) | 269 | assert.is.truthy(output:find("Checking stability of dependencies")) |
| 270 | assert.is.falsy(lfs.attributes(testing_paths.testing_sys_rocks .. "/say/1.2-1")) | 270 | assert.is.falsy(lfs.attributes(testing_paths.testing_sys_rocks .. "/say/1.2-1")) |
| 271 | end) | 271 | end) |
| 272 | it("break dependencies force fast", function() | 272 | it("break dependencies force fast", function() |
| 273 | assert.is_true(run.luarocks_bool("install say 1.2")) | 273 | assert.is_true(run.luarocks_bool("install say 1.2")) |
| 274 | assert.is_true(run.luarocks_bool("install luassert")) | 274 | assert.is_true(run.luarocks_bool("install luassert")) |
| 275 | assert.is.truthy(lfs.attributes(testing_paths.testing_sys_rocks .. "/say/1.2-1")) | 275 | assert.is.truthy(lfs.attributes(testing_paths.testing_sys_rocks .. "/say/1.2-1")) |
| @@ -337,7 +337,7 @@ describe("luarocks install #integration", function() | |||
| 337 | setup(function() | 337 | setup(function() |
| 338 | git = git_repo.start() | 338 | git = git_repo.start() |
| 339 | end) | 339 | end) |
| 340 | 340 | ||
| 341 | teardown(function() | 341 | teardown(function() |
| 342 | if git then | 342 | if git then |
| 343 | git:stop() | 343 | git:stop() |
