<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -13,6 +13,11 @@ if ActiveSupport.const_defined?(:Callbacks) &amp;&amp; Test::Unit::TestCase.include?(Act
     setup :do_some_setup
     teardown :do_some_teardown
     
+    @@has_been_run = false
+    def self.run?
+      @@has_been_run
+    end
+    
     def do_some_setup
       @@setup_callback_count += 1
     end
@@ -23,6 +28,7 @@ if ActiveSupport.const_defined?(:Callbacks) &amp;&amp; Test::Unit::TestCase.include?(Act
     
     def test_something
       assert_equal true, true
+      @@has_been_run = true
     end
     
     def teardown
@@ -38,7 +44,7 @@ if ActiveSupport.const_defined?(:Callbacks) &amp;&amp; Test::Unit::TestCase.include?(Act
     module Unit
       describe &quot;Running TestCase tests&quot; do
         before(:all) do
-          TestUnitTesting.run
+          TestUnitTesting.run unless TestUnitTesting.run?
         end
         
         it &quot;should call the setup callbacks&quot; do</diff>
      <filename>spec/rails/interop/testcase_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>5d62ea0ed9a4f7c5cba81048ef2af998a5348148</id>
    </parent>
  </parents>
  <author>
    <name>Jonathan del Strother</name>
    <email>jon.delStrother@bestbefore.tv</email>
  </author>
  <url>http://github.com/dchelimsky/rspec-rails/commit/6c6e0ded3bd72244bcfdaba854ac5e2e634c8e1d</url>
  <id>6c6e0ded3bd72244bcfdaba854ac5e2e634c8e1d</id>
  <committed-date>2008-07-17T16:50:10-07:00</committed-date>
  <authored-date>2008-07-12T09:04:26-07:00</authored-date>
  <message>Only run TestUnitTesting once

Was getting run once from the register_at_exit_hook magic, and once from being explicitly called in the spec</message>
  <tree>3efa6d596123aed18173537430df75e6cffbf36b</tree>
  <committer>
    <name>David Chelimsky</name>
    <email>david@chelimac.local</email>
  </committer>
</commit>
