Software /
code /
prosody
Changeset
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 |
parents | 8563:50f2ad088589 |
children | 8565:301e5b82b4d8 |
files | spec/util_pubsub_spec.lua |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
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