flushing db after every test group that touches the db

This commit is contained in:
Julian Lam
2014-11-04 18:39:25 -05:00
parent 4125a087b5
commit 9a8fa35d8d
3 changed files with 9 additions and 2 deletions

View File

@@ -55,7 +55,6 @@ describe('Categories', function() {
});
after(function() {
db.delete('category:' + categoryObj.cid);
db.sortedSetRemove('categories:cid', categoryObj.cid);
db.flushdb();
});
});

View File

@@ -362,4 +362,8 @@ describe('Test database', function() {
});
});
after(function() {
db.flushdb();
});
});

View File

@@ -285,4 +285,8 @@ describe('Groups', function() {
});
});
});
after(function() {
db.flushdb();
});
});