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

Commit a8f98af8 by Sascha Depold

a test for correct usage of global options

1 parent a9e6b87f
Showing with 6 additions and 0 deletions
......@@ -47,6 +47,12 @@ describe('Sequelize', function() {
expect(DAO.options.collate).toEqual('utf8_bin')
})
it("inherits global collate option", function() {
setup({ define: { collate: 'utf8_general_ci' } })
var DAO = sequelize.define('foo', {bar: Sequelize.STRING})
expect(DAO.options.collate).toEqual('utf8_general_ci')
})
it("inherits global classMethods and instanceMethods", function() {
setup({
define: {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!