aboutsummaryrefslogtreecommitdiffstats
path: root/spec/util_serialization_spec.lua
diff options
context:
space:
mode:
Diffstat (limited to 'spec/util_serialization_spec.lua')
-rw-r--r--spec/util_serialization_spec.lua6
1 files changed, 2 insertions, 4 deletions
diff --git a/spec/util_serialization_spec.lua b/spec/util_serialization_spec.lua
index 18e6ca68..f50bdf23 100644
--- a/spec/util_serialization_spec.lua
+++ b/spec/util_serialization_spec.lua
@@ -1,5 +1,4 @@
local serialization = require "util.serialization";
-local envload = require "util.envload";
describe("util.serialization", function ()
describe("serialize", function ()
@@ -15,9 +14,8 @@ describe("util.serialization", function ()
local function test(data)
local serialized = serialization.serialize(data);
assert.is_string(serialized);
- local chunk, err = envload.envload("return ("..serialized..");");
- assert.is_function(chunk, err);
- assert.same(data, chunk());
+ local deserialized, err = serialization.deserialize(serialized);
+ assert.same(data, deserialized, err);
end
test({});