Fix RegExp unit test setup/teardown

This commit is contained in:
Simon Ho 2015-07-28 17:55:27 -07:00
parent 6afb665b3d
commit 31671b5c25
1 changed files with 4 additions and 1 deletions

View File

@ -498,13 +498,16 @@ describe('mysql', function () {
}); });
context('regexp operator', function() { context('regexp operator', function() {
beforeEach(function deleteExistingTestFixtures(done) {
Post.destroyAll(done);
});
beforeEach(function createTestFixtures(done) { beforeEach(function createTestFixtures(done) {
Post.create([ Post.create([
{title: 'a', content: 'AAA'}, {title: 'a', content: 'AAA'},
{title: 'b', content: 'BBB'} {title: 'b', content: 'BBB'}
], done); ], done);
}); });
afterEach(function deleteTestFixtures(done) { after(function deleteTestFixtures(done) {
Post.destroyAll(done); Post.destroyAll(done);
}); });