diff options
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 |