Permalink
Browse files

Check redid keys after each test

  • Loading branch information...
1 parent f67a76d commit 2dfd45efa6c8f6df6cb9f1c8ff4d1fca0a73259d @wdavidw wdavidw committed Nov 15, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 test/update.coffee
View
@@ -34,12 +34,12 @@ describe 'update', ->
Users.update [{email: 'missing@email.com'}], (err, users) ->
# Todo, could be "Record without identifier or unique properties
err.message.should.eql 'Invalid record, got {"email":"missing@email.com"}'
- next()
+ Users.clear next
it 'should use unique index and fail because the provided value is not indexed', (next) ->
Users.update [{username: 'missing'}], (err, users) ->
err.message.should.eql 'Unsaved record'
- next()
+ Users.clear next
describe 'unique', ->

0 comments on commit 2dfd45e

Please sign in to comment.