From bbad9831577a123cc5f6bd7f04836f483c9e8f6f Mon Sep 17 00:00:00 2001 From: Luke Kanies Date: Sun, 23 Nov 2008 00:56:38 -0600 Subject: Removing the included testing gems; you must now install them yourself. Everything passes, but autotest doesn't include color. Signed-off-by: Luke Kanies --- autotest/puppet_rspec.rb | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) (limited to 'autotest') diff --git a/autotest/puppet_rspec.rb b/autotest/puppet_rspec.rb index 5ff794e9d..f50e6f1f5 100644 --- a/autotest/puppet_rspec.rb +++ b/autotest/puppet_rspec.rb @@ -42,19 +42,9 @@ Autotest.add_hook :initialize do |at| } end +# a place for overrides when necessary. class Autotest::PuppetRspec < 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["PATH"].split(":").collect { |dir| File.join(dir, "spec") } + end end -- cgit