Permalink
Browse files

Bind the test suite to `this` of each test call so suite properties c…

…an be referenced from test
  • Loading branch information...
1 parent 82a9f85 commit 87a8ecf785cee468e8ae2c877d3c0a340ce5f0d7 Zach Carter committed Mar 21, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 jsunity/jsunity.js
View
@@ -251,7 +251,7 @@ jsUnity = (function () {
try {
suite.setUp && suite.setUp();
- test.fn();
+ test.fn.call(suite);
suite.tearDown && suite.tearDown();
results.passed++;

0 comments on commit 87a8ecf

Please sign in to comment.