aboutsummaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-03-07 12:51:27 +0100
committerKim Alvefur <zash@zash.se>2018-03-07 12:51:27 +0100
commitb483b3e440ed665a83b6b6ac8b89e00ec2980507 (patch)
treed1b3e98fe2dbed7092ffc240cd9a0d814a698c03 /spec
parentf6f89ede90e15b12c12a70fe2265895f46a8aa5d (diff)
downloadprosody-b483b3e440ed665a83b6b6ac8b89e00ec2980507.tar.gz
prosody-b483b3e440ed665a83b6b6ac8b89e00ec2980507.zip
util_pubsub_spec: Move util.pubsub import into a setup block
Diffstat (limited to 'spec')
-rw-r--r--spec/util_pubsub_spec.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/spec/util_pubsub_spec.lua b/spec/util_pubsub_spec.lua
index 82aa7396..fac4d675 100644
--- a/spec/util_pubsub_spec.lua
+++ b/spec/util_pubsub_spec.lua
@@ -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