diff options
| -rw-r--r-- | autotest/facter_rspec.rb | 18 |
1 files 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 |
