Permalink
Browse files

only exec prefetch spec for mysql for now

  • Loading branch information...
1 parent 1f1ff22 commit e4ee70260f211c2e12183842cc490c88d2c5346a @sdepold committed Oct 2, 2012
Showing with 6 additions and 2 deletions.
  1. +6 −2 spec/dao-factory.spec.js
View
@@ -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', {
title: Sequelize.STRING
})
@@ -381,14 +383,16 @@ dialects.forEach(function(dialect) {
include: [ 'Task' ]
}).success(function(user) {
expect(user.task).toBeDefined()
- expect(user.task).toEqual(task)
+ expect(user.task.id).toEqual(task.id)
done()
})
}) //- setTask
}) //- Task.create
}) //- User.create
}) //- sequelize.sync
})
+
+ }
})
})
})

0 comments on commit e4ee702

Please sign in to comment.