diff --git a/spec/09_keyspace_sets_spec.coffee b/spec/09_keyspace_sets_spec.coffee index 1424922..146dea7 100644 --- a/spec/09_keyspace_sets_spec.coffee +++ b/spec/09_keyspace_sets_spec.coffee @@ -143,4 +143,12 @@ describe 'redis-keyspace prefix for sets', () -> expect(reply.length).toEqual(3) expect(_.intersect(reply,['six','seven','eight']).length).toEqual(3) done() + ) + it 'should union sets with sunion', () -> + runBlock 'sunion', (done) -> + client2.sunion('myset', 'myset2', testAsync (error,reply) -> + expect(error).toBeNull() + expect(reply.length).toEqual(4) + expect(_.intersect(reply,['five','six','seven','eight']).length).toEqual(4) + done() ) \ No newline at end of file