<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -168,10 +168,12 @@ class Autotest::MerbRspec &lt; Autotest
   #
   #   * bin/spec
   #   * default spec bin/loader installed in Rubygems
+  #   * default command executed when you type `spec`
   def spec_commands
     [
       File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'bin', 'spec')),
-      File.join(Config::CONFIG['bindir'], 'spec')
+      File.join(Config::CONFIG['bindir'], 'spec'),
+      `which spec`.chomp
     ]
   end
   </diff>
      <filename>merb-gen/app_generators/merb/templates/autotest/merb_rspec.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>6fed613f03c5a28a79f06e6edd57fa9ec5dbb41e</id>
    </parent>
  </parents>
  <author>
    <name>Damian Terentiev</name>
    <email>infusiastic@gmail.com</email>
  </author>
  <url>http://github.com/wycats/merb-more/commit/b93ae85cbd397503ee28eca77ad8e15865696f8b</url>
  <id>b93ae85cbd397503ee28eca77ad8e15865696f8b</id>
  <committed-date>2008-05-01T21:01:17-07:00</committed-date>
  <authored-date>2008-04-13T05:08:04-07:00</authored-date>
  <message>Added a small fix to autotest/merb_rspec.rb template

spec_commands method could fail to find a spec command.
Now it also tries to get the output of `which spec` as a last resort.

Signed-off-by: Michael S. Klishin &lt;michael@novemberain.com&gt;</message>
  <tree>7c9ab017034fc2819088047cbc314ee25147dc8c</tree>
  <committer>
    <name>Michael S. Klishin</name>
    <email>michael@novemberain.com</email>
  </committer>
</commit>
