summaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
authorDaniel DeLeo <dan@opscode.com>2011-03-04 08:28:09 -0800
committerDaniel DeLeo <dan@opscode.com>2011-03-04 08:28:09 -0800
commit454317e034bfa863b28ac4b88e375656eac1fa30 (patch)
tree95b182a7bfdba23b6e634dd092c7f6a0f941668d /Rakefile
parent3e466295289860b43322ac50f2b17e78d67ebb82 (diff)
downloadmixlib-cli-454317e034bfa863b28ac4b88e375656eac1fa30.tar.gz
upgrade to rspec 2
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile23
1 files changed, 6 insertions, 17 deletions
diff --git a/Rakefile b/Rakefile
index 8d33718..ebef673 100644
--- a/Rakefile
+++ b/Rakefile
@@ -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