Diff

spec/util_pubsub_spec.lua @ 8564:fd41dc4a78e9

util_pubsub_spec: Move util.pubsub import into a setup block
author Kim Alvefur <zash@zash.se>
date Wed, 07 Mar 2018 12:51:27 +0100
parent 8558:5de663cef508
child 8647:638ff2ad98e6
line wrap: on
line diff
--- a/spec/util_pubsub_spec.lua	Tue Mar 06 19:11:23 2018 +0100
+++ b/spec/util_pubsub_spec.lua	Wed Mar 07 12:51:27 2018 +0100
@@ -1,4 +1,8 @@
-local pubsub = require "util.pubsub";
+local pubsub;
+setup(function ()
+	pubsub = require "util.pubsub";
+end);
+
 describe("util.pubsub", function ()
 	describe("simple node creation and deletion", function ()
 		-- Roughly a port of scansion/scripts/pubsub_createdelete.scs