Skip to content

Commit

Permalink
linsert specs
Browse files Browse the repository at this point in the history
  • Loading branch information
Louis-Philippe Perron committed Jul 8, 2011
1 parent f0ad408 commit 3fab1ef
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion spec/07_keyspace_lists_spec.coffee
@@ -1,6 +1,6 @@
require('./helpers')

describe 'redis-keyspace prefix for hashes', () ->
describe 'redis-keyspace prefix for lists', () ->
client = null
client2 = null
beforeEach () ->
Expand Down Expand Up @@ -100,4 +100,11 @@ describe 'redis-keyspace prefix for hashes', () ->
expect(error).toBeNull()
expect(reply).toEqual(1)
done()
)
it 'should insert a member with linsert', () ->
runBlock 'linsert', (done) ->
client2.linsert('testlist', 'BEFORE', 'val6', 'val5dot5', testAsync (error,reply) ->
expect(error).toBeNull()
expect(reply).toEqual(5)
done()
)

0 comments on commit 3fab1ef

Please sign in to comment.