aboutsummaryrefslogtreecommitdiffstats
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
commit2fe0a4856a01987fd9e9da5bbe48546530665467 (patch)
treed1b3e98fe2dbed7092ffc240cd9a0d814a698c03
parent22cd130092c1913bd76b730dd57326f381bb35f0 (diff)
downloadprosody-2fe0a4856a01987fd9e9da5bbe48546530665467.tar.gz
prosody-2fe0a4856a01987fd9e9da5bbe48546530665467.zip
util_pubsub_spec: Move util.pubsub import into a setup block
-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