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

Commit 0034cb9f by Sascha Depold

fixed test

1 parent de662364
Showing with 5 additions and 4 deletions
...@@ -181,11 +181,12 @@ module.exports = { ...@@ -181,11 +181,12 @@ module.exports = {
}, },
'destroy should make the object unavailable': function(assert, beforeExit) { 'destroy should make the object unavailable': function(assert, beforeExit) {
var subject = 1 var subject = 1
Day.drop(function() { var UpdateAttributesTest = s.define('UpdateAttributeTest', {name: Sequelize.STRING})
Day.sync(function() { UpdateAttributesTest.drop(function() {
new Day({name:'Monday'}).save(function(day) { UpdateAttributesTest.sync(function() {
new UpdateAttributesTest({name:'Monday'}).save(function(day) {
day.destroy(function() { day.destroy(function() {
Day.find(day.id, function(result) { UpdateAttributesTest.find(day.id, function(result) {
subject = result subject = result
}) })
}) })
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!