diff options
| author | Hisham Muhammad <hisham@gobolinux.org> | 2020-04-17 18:47:30 -0300 |
|---|---|---|
| committer | Hisham Muhammad <hisham@gobolinux.org> | 2020-04-22 17:10:21 -0300 |
| commit | d1a32ba6b1fd5a829aa551aeb37a0c558b09660f (patch) | |
| tree | f0c34c4db56431799d50fc649320f8e1d847459b /spec/cmd_spec.lua | |
| parent | 01a83b9b8377f66c5258892bc85fff5c218fdbb7 (diff) | |
| download | luarocks-d1a32ba6b1fd5a829aa551aeb37a0c558b09660f.tar.gz luarocks-d1a32ba6b1fd5a829aa551aeb37a0c558b09660f.tar.bz2 luarocks-d1a32ba6b1fd5a829aa551aeb37a0c558b09660f.zip | |
Print more info about the location of Lua
Diffstat (limited to 'spec/cmd_spec.lua')
| -rw-r--r-- | spec/cmd_spec.lua | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/spec/cmd_spec.lua b/spec/cmd_spec.lua index 2c3f9f47..ad6ae7ad 100644 --- a/spec/cmd_spec.lua +++ b/spec/cmd_spec.lua | |||
| @@ -56,7 +56,7 @@ describe("LuaRocks command line #integration", function() | |||
| 56 | it("warns but continues if given an invalid version", function() | 56 | it("warns but continues if given an invalid version", function() |
| 57 | local output = run.luarocks("--lua-version=1.0") | 57 | local output = run.luarocks("--lua-version=1.0") |
| 58 | assert.match("Warning: Lua 1.0 interpreter not found", output, 1, true) | 58 | assert.match("Warning: Lua 1.0 interpreter not found", output, 1, true) |
| 59 | assert.match("Lua version: 1.0", output, 1, true) | 59 | assert.match("Version%s*:%s*1.0", output) |
| 60 | end) | 60 | end) |
| 61 | 61 | ||
| 62 | it("sets the version independently of project tree", function() | 62 | it("sets the version independently of project tree", function() |
| @@ -64,10 +64,10 @@ describe("LuaRocks command line #integration", function() | |||
| 64 | assert.truthy(run.luarocks_bool("init --lua-version=" .. test_env.lua_version .. " --lua-versions=" .. test_env.lua_version)) | 64 | assert.truthy(run.luarocks_bool("init --lua-version=" .. test_env.lua_version .. " --lua-versions=" .. test_env.lua_version)) |
| 65 | 65 | ||
| 66 | local output = run.luarocks("--lua-version=1.0") | 66 | local output = run.luarocks("--lua-version=1.0") |
| 67 | assert.match("Lua version: 1.0", output, 1, true) | 67 | assert.match("Version%s*:%s*1.0", output) |
| 68 | 68 | ||
| 69 | output = run.luarocks("--lua-version=1.0 --project-tree=.") | 69 | output = run.luarocks("--lua-version=1.0 --project-tree=.") |
| 70 | assert.match("Lua version: 1.0", output, 1, true) | 70 | assert.match("Version%s*:%s*1.0", output) |
| 71 | end, finally) | 71 | end, finally) |
| 72 | end) | 72 | end) |
| 73 | end) | 73 | end) |
| @@ -83,7 +83,7 @@ describe("LuaRocks command line #integration", function() | |||
| 83 | lfs.chdir("bbb") | 83 | lfs.chdir("bbb") |
| 84 | 84 | ||
| 85 | local output = run.luarocks("") | 85 | local output = run.luarocks("") |
| 86 | assert.match("Lua version: 1.0", output, 1, true) | 86 | assert.match("Version%s*:%s*1.0", output) |
| 87 | end, finally) | 87 | end, finally) |
| 88 | end) | 88 | end) |
| 89 | 89 | ||
| @@ -101,7 +101,7 @@ describe("LuaRocks command line #integration", function() | |||
| 101 | lfs.chdir("bbb") | 101 | lfs.chdir("bbb") |
| 102 | 102 | ||
| 103 | local output = run.luarocks("") | 103 | local output = run.luarocks("") |
| 104 | assert.match("Lua version: 5.2", output, 1, true) | 104 | assert.match("Version%s*:%s*5.2", output) |
| 105 | end, finally) | 105 | end, finally) |
| 106 | end) | 106 | end) |
| 107 | 107 | ||
