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

Commit 0034cb9f by Sascha Depold

fixed test

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