Permalink
Browse files

Fix: after an explicit call to Gently.verify, expectations are verifi…

…ed again on process exit
  • Loading branch information...
1 parent fbe5902 commit 48a2cc7e92fcb460038ca236f785fccf014c01bd @andreyvit andreyvit committed Apr 9, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/gently/gently.js
View
2 lib/gently/gently.js
@@ -115,6 +115,8 @@ Gently.prototype.verify = function(msg) {
}
}
+ this.expectations = []; // reset so that no duplicate verification attempts are made
+
if (!validExpectations.length) {
return;
}

0 comments on commit 48a2cc7

Please sign in to comment.