<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -12,13 +12,19 @@ Rake::TestTask.new(:test) do |t|
   t.ruby_opts = ['-rubygems'] if defined? Gem
 end
 
-desc 'Run compatibility specs (requires test-spec)'
-task :compat do |t|
-  if ENV['PATH'].split(':').any? { |p| File.exist?(&quot;#{p}/specrb&quot;) }
+task :compat do
+  begin
+    require 'mocha'
+  rescue LoadError
+    puts 'WARN: skipping compat tests. mocha gem required.'
+    exit
+  end
+
+  if system('testrb --help &amp;&gt;/dev/null')
     pattern = ENV['TEST'] || '.*'
     sh &quot;specrb --testcase '#{pattern}' -Ilib:test compat/*_test.rb&quot;
   else
-    puts &quot;WARN: skipping compat tests. test-spec and mocha gems required.&quot;
+    puts 'WARN: skipping compat tests. test-spec gem required.'
   end
 end
 </diff>
      <filename>Rakefile</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>4658f4b0f084d5537424dfd147ff40c965499fe6</id>
    </parent>
  </parents>
  <author>
    <name>Simon Rozet</name>
    <email>simon@rozet.name</email>
  </author>
  <url>http://github.com/bmizerany/sinatra/commit/8df2d63361d8ccbd9c09e5a19564cdb55f3e801f</url>
  <id>8df2d63361d8ccbd9c09e5a19564cdb55f3e801f</id>
  <committed-date>2009-04-19T10:18:27-07:00</committed-date>
  <authored-date>2009-04-19T10:16:34-07:00</authored-date>
  <message>Update compat test task so that it works on Heroku</message>
  <tree>76d57ca985c33b19159eaf93a9c7700352768a87</tree>
  <committer>
    <name>Simon Rozet</name>
    <email>simon@rozet.name</email>
  </committer>
</commit>
