不要怂,就是干,撸起袖子干!

Commit 722a69b6 by sdepold

remove all tables after each spec

1 parent de7a985c
Showing with 12 additions and 4 deletions
......@@ -88,11 +88,19 @@ describe('Migrator', function() {
})
})
})
/*
describe('getLastMigrationId', function() {
it("should correctly transform array into IN", function() {
describe('migrate', function() {
afterEach(function() {
Helpers.async(function(done) {
sequelize.getQueryInterface()
.dropAllTables()
.success(done)
.error(function(err) { console.log(err) })
})
})
it("should execute the migrations", function() {
/*Helpers.async(function(done) {
new Migrator(sequelize, {
path: __dirname + '/assets/migrations',
from: 2011111706370020111117063700,
......@@ -100,7 +108,7 @@ describe('Migrator', function() {
}).migrate().success(function() {
done()
})
})*/
})
})
})*/
})
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!