<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -40,22 +40,22 @@ class ActiveRecordSafetyListener
   include Singleton
   def scenario_started(*args)
     if defined?(ActiveRecord::Base)
-      if ActiveRecord::Base.respond_to?(:increment_open_transactions)
+      if ActiveRecord::Base.connection.respond_to?(:increment_open_transactions)
+        ActiveRecord::Base.connection.increment_open_transactions
+      else
         ActiveRecord::Base.send :increment_open_transactions
-      elsif ActiveRecord::Base.connection.respond_to?(:increment_open_transactions)
-        ActiveRecord::Base.connection.send :increment_open_transactions
       end
-      ActiveRecord::Base.connection.begin_db_transaction
     end
+    ActiveRecord::Base.connection.begin_db_transaction
   end
 
   def scenario_succeeded(*args)
     if defined?(ActiveRecord::Base)
       ActiveRecord::Base.connection.rollback_db_transaction
-      if ActiveRecord::Base.respond_to?(:decrement_open_transactions)
+      if ActiveRecord::Base.connection.respond_to?(:decrement_open_transactions)
+        ActiveRecord::Base.connection.decrement_open_transactions
+      else
         ActiveRecord::Base.send :decrement_open_transactions
-      elsif ActiveRecord::Base.connection.respond_to?(:decrement_open_transactions)
-        ActiveRecord::Base.connection.send :decrement_open_transactions
       end
     end
   end</diff>
      <filename>lib/spec/rails/story_adapter.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>96e2389b6162bf3ab87d78d06615f61a2778491f</id>
    </parent>
  </parents>
  <author>
    <name>David Chelimsky</name>
    <email>david@chelimac.local</email>
  </author>
  <url>http://github.com/dchelimsky/rspec-rails/commit/036020d0a4bc62233bc999cdc6dd040a3e68f355</url>
  <id>036020d0a4bc62233bc999cdc6dd040a3e68f355</id>
  <committed-date>2008-07-17T21:46:47-07:00</committed-date>
  <authored-date>2008-07-17T21:46:47-07:00</authored-date>
  <message>and now, without breaking stories against all the non-edge versions of rails</message>
  <tree>e605f533a9dad0246ef3b09f1e966ea56f75bc31</tree>
  <committer>
    <name>David Chelimsky</name>
    <email>david@chelimac.local</email>
  </committer>
</commit>
