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

Commit 55749fa0 by Josemando Sobral

test case for paranoidClause is not checking if underscored is enabled

1 parent f6694790
Showing with 18 additions and 0 deletions
......@@ -226,6 +226,24 @@ describe(Support.getTestDialectTeaser("DAOFactory"), function () {
})
})
})
it('should work with both paranoid and underscored being true', function(done) {
var UserTable = this.sequelize.define('UserCol', {
aNumber: Sequelize.INTEGER
}, {
paranoid: true,
underscored: true
})
UserTable.sync({force: true}).success(function() {
UserTable.create({aNumber: 30}).success(function(user) {
UserTable.count().success(function(c) {
expect(c).to.equal(1)
done()
})
})
})
})
})
describe('build', function() {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!