Software /
code /
prosody
Comparison
spec/util_pubsub_spec.lua @ 9159:a0fd7064f4ac
util.pubsub: Drop now redundant capabilities from tests
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 08 Aug 2018 21:49:41 +0200 |
parent | 9004:50a0f405e6c9 |
child | 9169:3ec013185c15 |
comparison
equal
deleted
inserted
replaced
9158:37e814a680ab | 9159:a0fd7064f4ac |
---|---|
31 | 31 |
32 describe("simple publishing", function () | 32 describe("simple publishing", function () |
33 local broadcaster = spy.new(function () end); | 33 local broadcaster = spy.new(function () end); |
34 local service = pubsub.new({ | 34 local service = pubsub.new({ |
35 broadcaster = broadcaster; | 35 broadcaster = broadcaster; |
36 capabilities = { | |
37 none = { | |
38 subscribe = true; | |
39 be_subscribed = true; | |
40 }; | |
41 } | |
42 }); | 36 }); |
43 | 37 |
44 it("creates a node", function () | 38 it("creates a node", function () |
45 assert.truthy(service:create("node", true)); | 39 assert.truthy(service:create("node", true)); |
46 end); | 40 end); |