Use a fresh collection each time the test is run

(so it can be rerun)
This commit is contained in:
Geoff Schmidt
2012-02-21 01:40:15 -08:00
parent e0722bedf8
commit 1c8e498e1e

View File

@@ -4,7 +4,7 @@ test("livedata - basics", function () {
assert.isTrue(Meteor.is_client);
assert.isFalse(Meteor.is_server);
var coll = new Meteor.Collection("testing");
var coll = new Meteor.Collection("testing" + LocalCollection.uuid());
coll.remove({foo: 'bar'});
assert.length(coll.find({foo: 'bar'}).fetch(), 0);