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

Commit 7fcbd079 by sdepold

correct spec for migration execution

1 parent 7e3e7407
Showing with 4 additions and 2 deletions
...@@ -100,7 +100,7 @@ describe('Migrator', function() { ...@@ -100,7 +100,7 @@ describe('Migrator', function() {
}) })
}) })
xit("should execute the specified migration (and e.g. create a file)", function() { it("should execute the specified migration (and e.g. create a file)", function() {
var migrator = new Migrator(sequelize, { var migrator = new Migrator(sequelize, {
path: __dirname + '/assets/migrations', path: __dirname + '/assets/migrations',
from: 20111117063700, from: 20111117063700,
...@@ -112,8 +112,10 @@ describe('Migrator', function() { ...@@ -112,8 +112,10 @@ describe('Migrator', function() {
}) })
Helpers.async(function(done) { Helpers.async(function(done) {
sequelize.getQueryInterface().showAllTables(function(tableName) { sequelize.getQueryInterface().showAllTables().success(function(tableNames) {
tableNames = tableNames.slice('SequelizeMeta', 1)
expect(tableNames.length).toEqual(1) expect(tableNames.length).toEqual(1)
expect(tableNames[0]).toEqual('Person')
done() done()
}) })
}) })
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!