Skip to content

Commit

Permalink
tests; handle mongo 2.3.2+ err messages
Browse files Browse the repository at this point in the history
  • Loading branch information
aheckmann committed Jan 19, 2013
1 parent 7eeea2d commit f108ace
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/model.update.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ describe('model: update:', function(){

BlogPost.update({ _id: post._id }, update2, function (err) {
assert.ok(err);
assert.ok(/^can't append to array using string field name \[body\]/.test(err.message));
assert.ok(/^can't append to array/.test(err.message));
BlogPost.findById(post, function (err, p) {
assert.ifError(err);

Expand Down

0 comments on commit f108ace

Please sign in to comment.