Skip to content

Commit

Permalink
Updated test for creating a duplicate user
Browse files Browse the repository at this point in the history
  • Loading branch information
sahat committed Mar 5, 2014
1 parent 3b72257 commit c8ecb08
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/models.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ describe('User Model', function() {
password: 'password'
});
user.save(function(err) {
if (err) return done();
done('Created a user with duplicate email');
if (err) err.code.should.equal(11000);
done();
});
});

Expand Down

0 comments on commit c8ecb08

Please sign in to comment.