Fixing autotest, now that vendor/ is gone
Signed-off-by: Luke Kanies <luke@madstop.com>
Luke Kanies
15 years ago
37 | 37 | end |
38 | 38 | |
39 | 39 | 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 | |
54 | 44 | end |