From d1a32ba6b1fd5a829aa551aeb37a0c558b09660f Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Fri, 17 Apr 2020 18:47:30 -0300 Subject: Print more info about the location of Lua --- spec/cmd_spec.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'spec') 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() it("warns but continues if given an invalid version", function() local output = run.luarocks("--lua-version=1.0") assert.match("Warning: Lua 1.0 interpreter not found", output, 1, true) - assert.match("Lua version: 1.0", output, 1, true) + assert.match("Version%s*:%s*1.0", output) end) it("sets the version independently of project tree", function() @@ -64,10 +64,10 @@ describe("LuaRocks command line #integration", function() assert.truthy(run.luarocks_bool("init --lua-version=" .. test_env.lua_version .. " --lua-versions=" .. test_env.lua_version)) local output = run.luarocks("--lua-version=1.0") - assert.match("Lua version: 1.0", output, 1, true) + assert.match("Version%s*:%s*1.0", output) output = run.luarocks("--lua-version=1.0 --project-tree=.") - assert.match("Lua version: 1.0", output, 1, true) + assert.match("Version%s*:%s*1.0", output) end, finally) end) end) @@ -83,7 +83,7 @@ describe("LuaRocks command line #integration", function() lfs.chdir("bbb") local output = run.luarocks("") - assert.match("Lua version: 1.0", output, 1, true) + assert.match("Version%s*:%s*1.0", output) end, finally) end) @@ -101,7 +101,7 @@ describe("LuaRocks command line #integration", function() lfs.chdir("bbb") local output = run.luarocks("") - assert.match("Lua version: 5.2", output, 1, true) + assert.match("Version%s*:%s*5.2", output) end, finally) end) -- cgit v1.2.3-55-g6feb