<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -48,6 +48,12 @@
       Screw.Unit(function() {
         // Tests are organized into 'describes' and 'its', following the style of RSpec.
         describe(&quot;foo.number&quot;, function() {
+          // this [before] function is run before every test
+          before(function() {
+            // restore all objects that were mocked to their original states;
+            TH.Mock.reset();
+          });
+          
           it(&quot;returns 2&quot;, function() {
             // 'equal' is one among many matchers provided with the Screw.Unit distribution. It
             // is smart enough to compare arrays, objects, and primitives.
@@ -62,6 +68,12 @@
             TH.Mock.obj(&quot;foo&quot;, { number: 3 });
             expect(foo.number).to_not(be_even);
           });
+          
+          it(&quot;is even in the next test because the mock was restored&quot;, function() {
+            // since the before function restored the mocked objects, foo has returned to normal
+            expect(foo.number).to(be_even);
+          });
+          
         });
       });
     &lt;/script&gt;</diff>
      <filename>EXAMPLE.html</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>d3cb92a9ed1d6339e5b16ace75b94fdc31622d5a</id>
    </parent>
  </parents>
  <author>
    <name>topper</name>
    <email>topper@toppingdesign.com</email>
  </author>
  <url>http://github.com/tobowers/screw-unit/commit/2c47fb8191c4c9e671cf61949bec98fb9d45df0f</url>
  <id>2c47fb8191c4c9e671cf61949bec98fb9d45df0f</id>
  <committed-date>2008-07-31T15:01:17-07:00</committed-date>
  <authored-date>2008-07-31T15:01:17-07:00</authored-date>
  <message>even more example cleanup</message>
  <tree>913d75c73d5ee94e131b7935869a3ac9cc2049ee</tree>
  <committer>
    <name>topper</name>
    <email>topper@toppingdesign.com</email>
  </committer>
</commit>
