Skip to content

Commit

Permalink
fix failing regexp test on array types
Browse files Browse the repository at this point in the history
  • Loading branch information
aheckmann committed Mar 22, 2011
1 parent 6b98d01 commit 5193b25
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/model.querying.test.js
Expand Up @@ -666,10 +666,9 @@ module.exports = {

BlogPostB.findOne({tags: {$in: ['football', 'baseball']}}, function (err, doc) {
should.strictEqual(err, null);

doc._id.should.eql(post._id);

BlogPostB.find({ _id: post._id, tags: /otba/i }, function (err, doc) {
BlogPostB.findOne({ _id: post._id, tags: /otba/i }, function (err, doc) {
should.strictEqual(err, null);
doc._id.should.eql(post._id);

Expand Down

0 comments on commit 5193b25

Please sign in to comment.