Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit e80e008ff30b9fcbf84194ba98b026c2a9502597 1 parent b767d4e
tfwright authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  jocha.js
View
2  jocha.js
@@ -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 = {
Please sign in to comment.
Something went wrong with that request. Please try again.