From 074eda99ffd186a667ec3f50fbb6d4e267f585cb Mon Sep 17 00:00:00 2001 From: Luke Kanies Date: Thu, 15 Jan 2009 11:41:51 -0600 Subject: Fixing autotest, now that vendor/ is gone Signed-off-by: Luke Kanies --- autotest/facter_rspec.rb | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/autotest/facter_rspec.rb b/autotest/facter_rspec.rb index bd057a8..668409b 100644 --- a/autotest/facter_rspec.rb +++ b/autotest/facter_rspec.rb @@ -38,18 +38,8 @@ Autotest.add_hook :initialize do |at| end class Autotest::FacterRspec < Autotest::Rspec - # Autotest will look for spec commands in the following - # locations, in this order: - # - # * bin/spec - # * default spec bin/loader installed in Rubygems - # * our local vendor/gems/rspec/bin/spec - def spec_commands - [ - File.join('vendor', 'gems', 'rspec', 'bin', 'spec') , - File.join('bin', 'spec'), - File.join(Config::CONFIG['bindir'], 'spec') - ] - end - + def spec_commands + ENV["AUTOTEST"] = "true" + ENV["PATH"].split(":").collect { |dir| File.join(dir, "spec") } + end end -- cgit