Permalink
Browse files

fixed bug in verifyAll

git-svn-id: file:///Users/jyurek/Backups/repositories/jocha/trunk@15 5317845c-832e-0410-b2c0-db6c5bc7c761
  • Loading branch information...
tfwright
tfwright committed Apr 20, 2007
1 parent b767d4e commit e80e008ff30b9fcbf84194ba98b026c2a9502597
Showing with 1 addition and 1 deletion.
  1. +1 −1 jocha.js
View
@@ -1,7 +1,7 @@
Jocha = {
mocks : new Array(),
// JSUnit specific
- verifyAll : function(){ this.mocks.each(function(m){ assertTrue(m.verify())}) }
+ verifyAll : function(){ this.mocks.each(function(m){ assertTrue(m.expectations.all(function(e){return e.invoked}))}) }
}
Jocha.Mock = Class.create();
Jocha.Mock.prototype = {

0 comments on commit e80e008

Please sign in to comment.