From 4d551d959457ab2f7bb639801ce4a22b7cd8151e Mon Sep 17 00:00:00 2001 From: Thomas Harning Jr Date: Mon, 14 Apr 2014 17:42:56 -0400 Subject: [PATCH] tests: fixes lunit test to work with Lua 5.2 environment management --- tests/testutil.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/testutil.lua b/tests/testutil.lua index 66d8595..7231a86 100644 --- a/tests/testutil.lua +++ b/tests/testutil.lua @@ -5,7 +5,7 @@ local assert_error = lunit.assert_error -- Allow module to alter decoder local function setDecoder(d) - decode = d + _G.decode = d end module("testutil", package.seeall) function buildPatchedDecoder(f, newDecoder) -- 2.11.4.GIT