Updated test for creating a duplicate user

This commit is contained in:
Sahat Yalkabov
2014-03-05 16:00:12 -05:00
parent 3b72257d4b
commit c8ecb086f9

View File

@ -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();
});
});