Skip to content

Commit

Permalink
Fix addMethod hook
Browse files Browse the repository at this point in the history
  • Loading branch information
ef4 committed Apr 17, 2015
1 parent c911c3d commit a2f3686
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/dirty-chai.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@
// Hook new method assertions
var addMethod = util.addMethod;
util.addMethod = function(ctx, name) {
addMethod.call(util, arguments);
addMethod.apply(util, arguments);
Assertion.overwriteMethod(name, function(_super) {
return function() {
var result = execDeferred(this);
Expand Down

0 comments on commit a2f3686

Please sign in to comment.