From 3382e44825ed2271aae09c503283c43f7f309e02 Mon Sep 17 00:00:00 2001 From: Tim Dysinger Date: Mon, 28 Apr 2008 23:46:07 -1000 Subject: [PATCH] fix for spec_command path problems on mac - should work on any system --- .../merb/templates/autotest/merb_rspec.rb | 7 ++----- 1 files changed, 2 insertions(+), 5 deletions(-) diff --git a/merb-gen/app_generators/merb/templates/autotest/merb_rspec.rb b/merb-gen/app_generators/merb/templates/autotest/merb_rspec.rb index 7bea399..0b055b7 100644 --- a/merb-gen/app_generators/merb/templates/autotest/merb_rspec.rb +++ b/merb-gen/app_generators/merb/templates/autotest/merb_rspec.rb @@ -166,13 +166,10 @@ class Autotest::MerbRspec < Autotest # Autotest will look for spec commands in the following # locations, in this order: # - # * bin/spec # * default spec bin/loader installed in Rubygems + # * any 'spec' found in the PATH 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'), 'spec' ] end private -- 1.5.5.1