Codebase list facter / 074eda9
Fixing autotest, now that vendor/ is gone Signed-off-by: Luke Kanies <luke@madstop.com> Luke Kanies 15 years ago
1 changed file(s) with 4 addition(s) and 14 deletion(s). Raw diff Collapse all Expand all
3737 end
3838
3939 class Autotest::FacterRspec < Autotest::Rspec
40 # Autotest will look for spec commands in the following
41 # locations, in this order:
42 #
43 # * bin/spec
44 # * default spec bin/loader installed in Rubygems
45 # * our local vendor/gems/rspec/bin/spec
46 def spec_commands
47 [
48 File.join('vendor', 'gems', 'rspec', 'bin', 'spec') ,
49 File.join('bin', 'spec'),
50 File.join(Config::CONFIG['bindir'], 'spec')
51 ]
52 end
53
40 def spec_commands
41 ENV["AUTOTEST"] = "true"
42 ENV["PATH"].split(":").collect { |dir| File.join(dir, "spec") }
43 end
5444 end