Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
only exec prefetch spec for mysql for now
  • Loading branch information
sdepold committed Oct 2, 2012
1 parent 1f1ff22 commit e4ee702
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions spec/dao-factory.spec.js
Expand Up @@ -360,7 +360,9 @@ dialects.forEach(function(dialect) {
}) })
}) })


it('//fetches associated objects for 1:1 associations', function(done) { if (dialect === 'mysql') {

it('fetches associated objects for 1:1 associations', function(done) {
var Task = this.sequelize.define('Task', { var Task = this.sequelize.define('Task', {
title: Sequelize.STRING title: Sequelize.STRING
}) })
Expand All @@ -381,14 +383,16 @@ dialects.forEach(function(dialect) {
include: [ 'Task' ] include: [ 'Task' ]
}).success(function(user) { }).success(function(user) {
expect(user.task).toBeDefined() expect(user.task).toBeDefined()
expect(user.task).toEqual(task) expect(user.task.id).toEqual(task.id)
done() done()
}) })
}) //- setTask }) //- setTask
}) //- Task.create }) //- Task.create
}) //- User.create }) //- User.create
}) //- sequelize.sync }) //- sequelize.sync
}) })

}
}) })
}) })
}) })

0 comments on commit e4ee702

Please sign in to comment.