diff --git a/packages/livedata/livedata_tests.js b/packages/livedata/livedata_tests.js index b8de74c8ed..51e9ddeee0 100644 --- a/packages/livedata/livedata_tests.js +++ b/packages/livedata/livedata_tests.js @@ -4,7 +4,7 @@ test("livedata - basics", function () { assert.isTrue(Meteor.is_client); assert.isFalse(Meteor.is_server); - var coll = Meteor.Collection("testing"); + var coll = new Meteor.Collection("testing"); coll.remove({foo: 'bar'}); assert.length(coll.find({foo: 'bar'}).fetch(), 0); diff --git a/packages/livedata/package.js b/packages/livedata/package.js index 636f3b0590..79cff20cd7 100644 --- a/packages/livedata/package.js +++ b/packages/livedata/package.js @@ -21,6 +21,7 @@ Package.on_use(function (api) { Package.on_test(function (api) { api.use('livedata', ['client', 'server']); + api.use('mongo-livedata', ['client', 'server']); api.use('tinytest'); api.add_files('livedata_tests.js', 'client'); }); diff --git a/packages/minimongo/selector.js b/packages/minimongo/selector.js index ae3ed3747d..65deedc4af 100644 --- a/packages/minimongo/selector.js +++ b/packages/minimongo/selector.js @@ -531,7 +531,7 @@ LocalCollection._exprForConstraint = function (type, arg, others, // mongo doesn't support $regex inside a $not for some reason. we // do, because there's no reason not to that I can see.. but maybe // we should follow mongo's behavior? - expr = '!' + Collection._exprForOperatorTest(arg, literals); + expr = '!' + LocalCollection._exprForOperatorTest(arg, literals); search = null; } else { throw Error("Unrecognized key in selector: " + type); diff --git a/packages/mongo-livedata/collection.js b/packages/mongo-livedata/collection.js index bbb4f4c998..556a3453a2 100644 --- a/packages/mongo-livedata/collection.js +++ b/packages/mongo-livedata/collection.js @@ -38,6 +38,7 @@ Meteor.Collection = function (name, manager, driver) { }, // Apply an update from the server. + // XXX better specify this interface (not in terms of a wire message)? update: function (msg) { var doc = self._collection.findOne(msg.id);