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

Commit dc1930c9 by Sascha Depold

fixed broken mysql spec

1 parent 7e823676
Showing with 3 additions and 3 deletions
......@@ -2400,8 +2400,8 @@ describe(Support.getTestDialectTeaser("DAOFactory"), function () {
afterEach(function(done) {
var self = this
self.sequelize.getQueryInterface().dropTable('posts').success(function() {
self.sequelize.getQueryInterface().dropTable('authors').success(function() {
self.sequelize.getQueryInterface().dropTable('posts', { force: true }).success(function() {
self.sequelize.getQueryInterface().dropTable('authors', { force: true }).success(function() {
done()
})
})
......@@ -2495,7 +2495,7 @@ describe(Support.getTestDialectTeaser("DAOFactory"), function () {
}
}).error(function(err) {
if (dialect === 'mysql') {
expect(err.message).to.match(/ER_CANNOT_ADD_FOREIGN/)
expect(err.message).to.match(/ER_CANT_CREATE_TABLE/)
}
else if (dialect === 'sqlite') {
// the parser should not end up here ... see above
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!