diff options
author | Daniel DeLeo <dan@opscode.com> | 2011-03-04 09:01:53 -0800 |
---|---|---|
committer | Daniel DeLeo <dan@opscode.com> | 2011-03-04 09:01:53 -0800 |
commit | 0dee0929cf660f02e474ee488e54a37b15b8c79d (patch) | |
tree | 15d18c719700ee56c417b4a43119a1faec62059a /Rakefile | |
parent | 7cf27dd96755216d14507bc6baeda3e50bbd64ea (diff) | |
download | mixlib-log-0dee0929cf660f02e474ee488e54a37b15b8c79d.tar.gz |
upgrade to rspec 2
Diffstat (limited to 'Rakefile')
-rw-r--r-- | Rakefile | 23 |
1 files changed, 3 insertions, 20 deletions
@@ -20,34 +20,17 @@ rescue LoadError end begin - require 'spec/rake/spectask' - Spec::Rake::SpecTask.new(:spec) do |spec| - spec.libs << 'lib' << 'spec' - spec.spec_opts = ['--options', "\"#{File.dirname(__FILE__)}/spec/spec.opts\""] - spec.spec_files = FileList['spec/**/*_spec.rb'] - end - - Spec::Rake::SpecTask.new(:rcov) do |spec| - spec.libs << 'lib' << 'spec' + require 'rspec/core/rake_task' + RSpec::Core::RakeTask.new(:spec) do |spec| spec.pattern = 'spec/**/*_spec.rb' - spec.rcov = true end + rescue LoadError task :spec do abort "Rspec is not available. (sudo) gem install rspec to run unit tests" end end - -begin - require 'cucumber/rake/task' - Cucumber::Rake::Task.new(:features) -rescue LoadError - task :features do - abort "Cucumber is not available. In order to run features, you must: sudo gem install cucumber" - end -end - task :default => :spec require 'rake/rdoctask' |