public
Description: Merb More: The Full Stack. Take what you need; leave what you don't.
Homepage: http://www.merbivore.com
Clone URL: git://github.com/wycats/merb-more.git
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 <michael@novemberain.com>
Damian Terentiev (author)
Sun Apr 13 05:08:04 -0700 2008
michaelklishin (committer)
Thu May 01 21:01:17 -0700 2008
commit  b93ae85cbd397503ee28eca77ad8e15865696f8b
tree    7c9ab017034fc2819088047cbc314ee25147dc8c
parent  6fed613f03c5a28a79f06e6edd57fa9ec5dbb41e
...
168
169
170
 
171
172
173
174
 
 
175
176
177
...
168
169
170
171
172
173
174
 
175
176
177
178
179
0
@@ -168,10 +168,12 @@ class Autotest::MerbRspec < Autotest
0
   #
0
   #   * bin/spec
0
   #   * default spec bin/loader installed in Rubygems
0
+  #   * default command executed when you type `spec`
0
   def spec_commands
0
     [
0
       File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'bin', 'spec')),
0
-      File.join(Config::CONFIG['bindir'], 'spec')
0
+      File.join(Config::CONFIG['bindir'], 'spec'),
0
+      `which spec`.chomp
0
     ]
0
   end
0
   

Comments