summaryrefslogtreecommitdiffstats
path: root/autotest
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2008-11-23 00:56:38 -0600
committerJames Turnbull <james@lovedthanlost.net>2008-11-25 14:11:00 +1100
commitbbad9831577a123cc5f6bd7f04836f483c9e8f6f (patch)
tree7dd57ec825adbf6a6acba1e999ef3de61802339c /autotest
parentb415848841edac9b08ff604416ad2e24dd350b4d (diff)
downloadpuppet-bbad9831577a123cc5f6bd7f04836f483c9e8f6f.tar.gz
puppet-bbad9831577a123cc5f6bd7f04836f483c9e8f6f.tar.xz
puppet-bbad9831577a123cc5f6bd7f04836f483c9e8f6f.zip
Removing the included testing gems; you must now install them yourself.
Everything passes, but autotest doesn't include color. Signed-off-by: Luke Kanies <luke@madstop.com>
Diffstat (limited to 'autotest')
-rw-r--r--autotest/puppet_rspec.rb18
1 files changed, 4 insertions, 14 deletions
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