diff options
| author | Hisham Muhammad <hisham@gobolinux.org> | 2020-04-16 13:45:50 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-04-16 13:45:50 -0300 |
| commit | af03c342789dce9799af2f41fda42f7d36467b85 (patch) | |
| tree | 4b94a18d272133419cb3e26d6dc0c6b5ed382595 /spec/cmd_spec.lua | |
| parent | 708fed20d013e69fd79d80f0b59a45a25eed3a00 (diff) | |
| download | luarocks-af03c342789dce9799af2f41fda42f7d36467b85.tar.gz luarocks-af03c342789dce9799af2f41fda42f7d36467b85.tar.bz2 luarocks-af03c342789dce9799af2f41fda42f7d36467b85.zip | |
Handle quoting at the application level (#1181)
This is done to support Windows. Unix handles quoting at the shell level.
While quotes are technically valid as part of Unix names, I don't expect this pathological case to be something we need to support.
Closes #1173.
Diffstat (limited to 'spec/cmd_spec.lua')
| -rw-r--r-- | spec/cmd_spec.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/cmd_spec.lua b/spec/cmd_spec.lua index 705b8845..2c3f9f47 100644 --- a/spec/cmd_spec.lua +++ b/spec/cmd_spec.lua | |||
| @@ -46,6 +46,10 @@ describe("LuaRocks command line #integration", function() | |||
| 46 | it("passes if given a valid path with Lua", function() | 46 | it("passes if given a valid path with Lua", function() |
| 47 | assert.truthy(run.luarocks("--lua-dir=" .. test_env.testing_paths.luadir)) | 47 | assert.truthy(run.luarocks("--lua-dir=" .. test_env.testing_paths.luadir)) |
| 48 | end) | 48 | end) |
| 49 | |||
| 50 | it("passes if given a quoted path with Lua", function() | ||
| 51 | assert.truthy(run.luarocks("--lua-dir '" .. test_env.testing_paths.luadir .. "'")) | ||
| 52 | end) | ||
| 49 | end) | 53 | end) |
| 50 | 54 | ||
| 51 | describe("--lua-version", function() | 55 | describe("--lua-version", function() |
