Permalink
Browse files

[tests] Updating Creature resource

  • Loading branch information...
1 parent 0267b6a commit f285ba3a01651ea82049d6cf2f70a1ea6ce2b22c @Marak Marak committed Aug 22, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 test/fixtures/index.js
View
@@ -37,7 +37,7 @@ fixtures.Creature = resourceful.define('creature', function () {
}
var life = creature.life + 1;
self.update(_id, { life: life }, function(err, result){
- callback(null, 'I have been fed my life is: ' + result.life);
+ callback(null, result.id + ' has been fed. life is: ' + result.life);
});
});
}
@@ -50,7 +50,7 @@ fixtures.Creature = resourceful.define('creature', function () {
}
var life = creature.life - 1;
self.update(_id, { life: life }, function(err, result){
- callback(null, 'I have been hit my life is: ' + result.life);
+ callback(null, result.id + ' has been hit. life is: ' + result.life);
});
});
}

0 comments on commit f285ba3

Please sign in to comment.