<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -53,7 +53,11 @@ module RailsTestServing
     end
 
     def clean_up_app
-      ActionController::Dispatcher.new(StringIO.new).cleanup_application
+      if ActionController::Dispatcher.respond_to?(:cleanup_application)
+        ActionController::Dispatcher.cleanup_application
+      else
+        ActionController::Dispatcher.new(StringIO.new).cleanup_application
+      end
       if defined?(Fixtures) &amp;&amp; Fixtures.respond_to?(:reset_cache)
         Fixtures.reset_cache
       end
@@ -73,7 +77,11 @@ module RailsTestServing
     end
 
     def reload_app
-      ActionController::Dispatcher.new(StringIO.new).reload_application
+      if ActionController::Dispatcher.respond_to?(:reload_application)
+        ActionController::Dispatcher.reload_application
+      else
+        ActionController::Dispatcher.new(StringIO.new).reload_application
+      end
     end
 
     def reload_specified_source_files</diff>
      <filename>lib/rails_test_serving/cleaner.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>d4bfb4aa73a4901e33376994ece984c8ab0cfe23</id>
    </parent>
  </parents>
  <author>
    <name>Yury Kotlyarov</name>
    <email>yura@brainhouse.ru</email>
  </author>
  <url>http://github.com/Roman2K/rails-test-serving/commit/07143f3d2da164d71b75092def264a8ee858a91a</url>
  <id>07143f3d2da164d71b75092def264a8ee858a91a</id>
  <committed-date>2009-03-28T10:11:43-07:00</committed-date>
  <authored-date>2009-03-28T10:11:43-07:00</authored-date>
  <message>fixed to run under Rails 2.3</message>
  <tree>56b533ccd93f430a48efee3a31dc0303af51cb43</tree>
  <committer>
    <name>Yury Kotlyarov</name>
    <email>yura@brainhouse.ru</email>
  </committer>
</commit>
