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

Commit 683515b8 by Sushant Committed by Jan Aagaard Meier

(test) ENUM allow spaces in their definition (#6006)

1 parent d486b704
Showing with 13 additions and 0 deletions
...@@ -386,4 +386,17 @@ describe(Support.getTestDialectTeaser('DataTypes'), function() { ...@@ -386,4 +386,17 @@ describe(Support.getTestDialectTeaser('DataTypes'), function() {
}); });
} }
it('should allow spaces in ENUM', function () {
var Model = this.sequelize.define('user', {
name: Sequelize.STRING,
type: Sequelize.ENUM(['action', 'mecha', 'canon', 'class s'])
});
return Model.sync({ force: true}).then(function () {
return Model.create({ name: 'sakura', type: 'class s' });
}).then(function (record) {
expect(record.type).to.be.eql('class s');
});
});
}); });
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!