<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -28,11 +28,11 @@
     it: function(name, callback, nowait) {
       var spec = this;
       var spec_context = {};
-      if (spec.before) spec.before.apply(spec_context);
       jqUnit.test(name, function() { 
+        if (spec.before) spec.before.apply(spec_context);
         callback.apply(spec_context, [this]); 
+        if (spec.after) spec.after.apply(spec_context);
       }, nowait);
-      if (spec.after) spec.after.apply(spec_context);
       return spec;
     },
 </diff>
      <filename>jqunit-spec.js</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>52edc1e94dc4f62665ea702394369026cd26651e</id>
    </parent>
  </parents>
  <author>
    <name>Aaron Quint</name>
    <email>aaron@quirkey.com</email>
  </author>
  <url>http://github.com/quirkey/jqunit-spec/commit/1e43d7067da3de13782c099325a84842a9f7c078</url>
  <id>1e43d7067da3de13782c099325a84842a9f7c078</id>
  <committed-date>2009-09-05T12:36:54-07:00</committed-date>
  <authored-date>2009-09-05T12:36:54-07:00</authored-date>
  <message>Run befores and afters in the scope of each test</message>
  <tree>6e671e2b295636f4b335346e37234db26f931eb4</tree>
  <committer>
    <name>Aaron Quint</name>
    <email>aaron@quirkey.com</email>
  </committer>
</commit>
