it('should support a empty belongsTo include',function(done){
it('should support an empty belongsTo include',function(done){
varCompany=this.sequelize.define('Company',{})
varCompany=this.sequelize.define('Company',{})
,User=this.sequelize.define('User',{})
,User=this.sequelize.define('User',{})
...
@@ -36,6 +36,35 @@ describe(Support.getTestDialectTeaser("Include"), function () {
...
@@ -36,6 +36,35 @@ describe(Support.getTestDialectTeaser("Include"), function () {
})
})
})
})
// We don't support naming associations the same as the foreign key, however the system should not crash because of it, the results hould just be wrong as is expected behaviour currently.
it.only('should not throw an error when an empty include is named the same as the foreign key',function(done){