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

Commit beb7bab5 by sdepold

fixed spec

1 parent 22bb84da
Showing with 6 additions and 2 deletions
...@@ -52,8 +52,12 @@ module.exports = { ...@@ -52,8 +52,12 @@ module.exports = {
User.sync({force:true}).on('success', function() { User.sync({force:true}).on('success', function() {
User.create({name: 'snafu', identifier: 'identifier'}).on('success', function(user) { User.create({name: 'snafu', identifier: 'identifier'}).on('success', function(user) {
var query = user.updateAttributes({name: 'foobar'}) var emitter = user.updateAttributes({name: 'foobar'})
assert.match(query.sql, /WHERE `identifier`..identifier./)
emitter.success(function() {
assert.match(emitter.query.sql, /WHERE `identifier`..identifier./)
})
exit(function(){}) exit(function(){})
}) })
}) })
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!