Skip to content

Commit

Permalink
sunion specs
Browse files Browse the repository at this point in the history
  • Loading branch information
Louis-Philippe Perron committed Jul 8, 2011
1 parent dba0c59 commit 6629613
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions spec/09_keyspace_sets_spec.coffee
Expand Up @@ -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()
)

0 comments on commit 6629613

Please sign in to comment.