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

Commit 864d6642 by Gavri

Added a failing test for the findAll/hasOne/belongsTo problem

1 parent 3f3a797b
Showing with 2 additions and 0 deletions
......@@ -426,6 +426,7 @@ describe("[" + dialect.toUpperCase() + "] DAOFactory", function() {
this.sequelize.sync({ force: true }).success(function() {
this.User.create({ name: 'barfooz' }).success(function(user) {
this.User.create({ name: 'another user' }).success(function(another_user) {
this.Task.create({ title: 'task' }).success(function(task) {
user.setTask(task).success(function() {
this.Task.find({
......@@ -439,6 +440,7 @@ describe("[" + dialect.toUpperCase() + "] DAOFactory", function() {
}.bind(this)) //- setTask
}.bind(this)) //- Task.create
}.bind(this)) //- User.create
}.bind(this)) //- User.create
}.bind(this)) //- sequelize.sync
})
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!