diff options
author | Adam Jacob <adam@hjksolutions.com> | 2008-03-10 00:38:43 -0700 |
---|---|---|
committer | Adam Jacob <adam@hjksolutions.com> | 2008-03-10 00:38:43 -0700 |
commit | 3dd77b260393bae93bb27677e3f8a45f407981c1 (patch) | |
tree | d017427ddcd5733caf7c0ceeec8ea72abbb107fa /tasks | |
parent | b4beed548959ca63365ca3d799c59a155047b5ff (diff) | |
download | chef-3dd77b260393bae93bb27677e3f8a45f407981c1.tar.gz |
Added rcov coverage, lots of tests, definitions, node support
Diffstat (limited to 'tasks')
-rw-r--r-- | tasks/rspec.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tasks/rspec.rb b/tasks/rspec.rb index 077840d31d..80b0a79557 100644 --- a/tasks/rspec.rb +++ b/tasks/rspec.rb @@ -10,24 +10,24 @@ require 'spec/rake/spectask' require 'spec/rake/spectask' require 'spec/translator' -MARIONETTE_ROOT = File.join(File.dirname(__FILE__), "..") +CHEF_ROOT = File.join(File.dirname(__FILE__), "..") task :default => :spec desc "Run all specs in spec directory" Spec::Rake::SpecTask.new(:spec) do |t| - t.spec_opts = ['--options', "\"#{MARIONETTE_ROOT}/spec/spec.opts\""] + t.spec_opts = ['--options', "\"#{CHEF_ROOT}/spec/spec.opts\""] t.spec_files = FileList['spec/**/*_spec.rb'] end namespace :spec do desc "Run all specs in spec directory with RCov" Spec::Rake::SpecTask.new(:rcov) do |t| - t.spec_opts = ['--options', "\"#{MARIONETTE_ROOT}/spec/spec.opts\""] + t.spec_opts = ['--options', "\"#{CHEF_ROOT}/spec/spec.opts\""] t.spec_files = FileList['spec/**/*_spec.rb'] t.rcov = true t.rcov_opts = lambda do - IO.readlines("#{MARIONETTE_ROOT}/spec/rcov.opts").map {|l| l.chomp.split " "}.flatten + IO.readlines("#{CHEF_ROOT}/spec/rcov.opts").map {|l| l.chomp.split " "}.flatten end end @@ -40,7 +40,7 @@ namespace :spec do [:unit].each do |sub| desc "Run the specs under spec/#{sub}" Spec::Rake::SpecTask.new(sub) do |t| - t.spec_opts = ['--options', "\"#{MARIONETTE_ROOT}/spec/spec.opts\""] + t.spec_opts = ['--options', "\"#{CHEF_ROOT}/spec/spec.opts\""] t.spec_files = FileList["spec/#{sub}/**/*_spec.rb"] end end @@ -48,7 +48,7 @@ namespace :spec do desc "Translate/upgrade specs using the built-in translator" task :translate do translator = ::Spec::Translator.new - dir = MARIONETTE_ROOT + '/spec' + dir = CHEF_ROOT + '/spec' translator.translate(dir, dir) end end
\ No newline at end of file |