diff options
author | Daniel DeLeo <dan@opscode.com> | 2011-03-04 08:28:09 -0800 |
---|---|---|
committer | Daniel DeLeo <dan@opscode.com> | 2011-03-04 08:28:09 -0800 |
commit | 454317e034bfa863b28ac4b88e375656eac1fa30 (patch) | |
tree | 95b182a7bfdba23b6e634dd092c7f6a0f941668d /Rakefile | |
parent | 3e466295289860b43322ac50f2b17e78d67ebb82 (diff) | |
download | mixlib-cli-454317e034bfa863b28ac4b88e375656eac1fa30.tar.gz |
upgrade to rspec 2
Diffstat (limited to 'Rakefile')
-rw-r--r-- | Rakefile | 23 |
1 files changed, 6 insertions, 17 deletions
@@ -15,25 +15,14 @@ rescue LoadError puts "Jeweler (or a dependency) not available. Install from gemcutter with: sudo gem install gemcutter jeweler" end -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' - spec.pattern = 'spec/**/*_spec.rb' - spec.rcov = true -end - begin - require 'cucumber/rake/task' - Cucumber::Rake::Task.new(:features) + require 'rspec/core/rake_task' + RSpec::Core::RakeTask.new(:spec) do |spec| + spec.pattern = 'spec/**/*_spec.rb' + end rescue LoadError - task :features do - abort "Cucumber is not available. In order to run features, you must: sudo gem install cucumber" + task :spec do + abort "RSpec 2.0+ is not available. (sudo) install rspec." end end |