diff options
| author | Hisham Muhammad <hisham@gobolinux.org> | 2024-02-28 11:49:34 -0300 |
|---|---|---|
| committer | Hisham Muhammad <hisham@gobolinux.org> | 2024-02-29 15:31:46 +0000 |
| commit | 3f0f3028321154cbacecd6690833d0e8c805ccd8 (patch) | |
| tree | 76150d9b8cc50f89fa32d5716a26b6261f4e087e /spec/cmd_spec.lua | |
| parent | 6f07395f37459d7e0c2732888a1f7312fea0c67c (diff) | |
| download | luarocks-3f0f3028321154cbacecd6690833d0e8c805ccd8.tar.gz luarocks-3f0f3028321154cbacecd6690833d0e8c805ccd8.tar.bz2 luarocks-3f0f3028321154cbacecd6690833d0e8c805ccd8.zip | |
feat: more informative reports no bad LUA_{INC,LIB}DIR configs
Diffstat (limited to 'spec/cmd_spec.lua')
| -rw-r--r-- | spec/cmd_spec.lua | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/spec/cmd_spec.lua b/spec/cmd_spec.lua index 9067a160..20248af7 100644 --- a/spec/cmd_spec.lua +++ b/spec/cmd_spec.lua | |||
| @@ -56,12 +56,6 @@ describe("LuaRocks command line #integration", function() | |||
| 56 | assert.match("malformed", output, 1, true) | 56 | assert.match("malformed", output, 1, true) |
| 57 | end) | 57 | end) |
| 58 | 58 | ||
| 59 | it("warns but continues if given an invalid version", function() | ||
| 60 | local output = run.luarocks("--lua-version=1.0") | ||
| 61 | assert.match("LUA *: %(not found%)", output) | ||
| 62 | assert.match("Version%s*:%s*1.0", output) | ||
| 63 | end) | ||
| 64 | |||
| 65 | it("sets the version independently of project tree", function() | 59 | it("sets the version independently of project tree", function() |
| 66 | test_env.run_in_tmp(function(tmpdir) | 60 | test_env.run_in_tmp(function(tmpdir) |
| 67 | assert.truthy(run.luarocks_bool("init --lua-version=" .. test_env.lua_version .. " --lua-versions=" .. test_env.lua_version)) | 61 | assert.truthy(run.luarocks_bool("init --lua-version=" .. test_env.lua_version .. " --lua-versions=" .. test_env.lua_version)) |
