diff options
author | Ezra Zygmuntowicz <ez@engineyard.com> | 2008-10-08 14:19:52 -0700 |
---|---|---|
committer | Ezra Zygmuntowicz <ez@engineyard.com> | 2008-10-08 14:19:52 -0700 |
commit | c5d33c1298834ce40b8fbf344f281045771b5371 (patch) | |
tree | 1f0d4c7eab1eb379b544282a7ce48052acf719a5 /tasks | |
parent | 3d14601aea23dee3899d097324875274da419d84 (diff) | |
download | chef-c5d33c1298834ce40b8fbf344f281045771b5371.tar.gz |
big refactor of the repo layout. move to a chef gem and a chef-server gem all with proper deps
Diffstat (limited to 'tasks')
-rw-r--r-- | tasks/rspec.rb | 54 |
1 files changed, 0 insertions, 54 deletions
diff --git a/tasks/rspec.rb b/tasks/rspec.rb deleted file mode 100644 index 80b0a79557..0000000000 --- a/tasks/rspec.rb +++ /dev/null @@ -1,54 +0,0 @@ -require 'rubygems' -require 'rake' -require 'spec/rake/spectask' - -#desc "Run all examples" -#Spec::Rake::SpecTask.new('spec') do |t| -# t.spec_files = FileList[File.join(File.dirname(__FILE__), "..", "spec", "**", "*.rb")] -#end - -require 'spec/rake/spectask' -require 'spec/translator' - -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', "\"#{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', "\"#{CHEF_ROOT}/spec/spec.opts\""] - t.spec_files = FileList['spec/**/*_spec.rb'] - t.rcov = true - t.rcov_opts = lambda do - IO.readlines("#{CHEF_ROOT}/spec/rcov.opts").map {|l| l.chomp.split " "}.flatten - end - end - - desc "Print Specdoc for all specs" - Spec::Rake::SpecTask.new(:doc) do |t| - t.spec_opts = ["--format", "specdoc", "--dry-run"] - t.spec_files = FileList['spec/**/*_spec.rb'] - end - - [:unit].each do |sub| - desc "Run the specs under spec/#{sub}" - Spec::Rake::SpecTask.new(sub) do |t| - t.spec_opts = ['--options', "\"#{CHEF_ROOT}/spec/spec.opts\""] - t.spec_files = FileList["spec/#{sub}/**/*_spec.rb"] - end - end - - desc "Translate/upgrade specs using the built-in translator" - task :translate do - translator = ::Spec::Translator.new - dir = CHEF_ROOT + '/spec' - translator.translate(dir, dir) - end -end
\ No newline at end of file |