<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -7,6 +7,8 @@ task :spec =&gt; :test
 
 # SPECS ===============================================================
 
+task(:test) { puts &quot;==&gt; Running main test suite&quot; }
+
 Rake::TestTask.new(:test) do |t|
   t.test_files = FileList['test/*_test.rb']
   t.ruby_opts = ['-rubygems'] if defined? Gem
@@ -16,18 +18,17 @@ desc &quot;Run &lt; 0.9.x compatibility specs&quot;
 task :compat do
   begin
     require 'mocha'
-  rescue LoadError
-    puts 'WARN: skipping compat tests. mocha gem required.'
-    next
-  end
+    require 'test/spec'
+    at_exit { exit 0 } # disable test-spec at_exit runner
 
-  if ! system('specrb --help &amp;&gt;/dev/null')
-    puts 'WARN: skipping compat tests. test-spec gem required.'
-    next
+    puts &quot;==&gt; Running compat test suite&quot;
+    Rake::TestTask.new(:compat) do |t|
+      t.test_files = FileList['compat/*_test.rb']
+      t.ruby_opts = ['-rubygems'] if defined? Gem
+    end
+  rescue LoadError
+    warn 'Skipping compat tests. mocha and/or test-spec gems not installed.'
   end
-
-  pattern = ENV['TEST'] || '.*'
-  sh &quot;specrb --testcase '#{pattern}' -Ilib:test compat/*_test.rb&quot;
 end
 
 # PACKAGING ============================================================</diff>
      <filename>Rakefile</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>c31a2b8544dc1c517878e2bb31d9b3d2d27d2327</id>
    </parent>
  </parents>
  <author>
    <name>Simon Rozet</name>
    <email>simon@rozet.name</email>
  </author>
  <url>http://github.com/sr/sinatra/commit/caca9abd4ccbb4ee0cdfe1ff0963201bc3819d93</url>
  <id>caca9abd4ccbb4ee0cdfe1ff0963201bc3819d93</id>
  <committed-date>2009-04-26T04:42:47-07:00</committed-date>
  <authored-date>2009-04-20T08:12:54-07:00</authored-date>
  <message>Try to run compat tests with Rake::TestTask

This should make the compat specs run under integrity
installs at Heroku.</message>
  <tree>28baf812ba55f09829b0489a24ec1518a7645db3</tree>
  <committer>
    <name>Ryan Tomayko</name>
    <email>rtomayko@gmail.com</email>
  </committer>
</commit>
