summaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
authorDaniel DeLeo <dan@opscode.com>2011-03-04 09:01:53 -0800
committerDaniel DeLeo <dan@opscode.com>2011-03-04 09:01:53 -0800
commit0dee0929cf660f02e474ee488e54a37b15b8c79d (patch)
tree15d18c719700ee56c417b4a43119a1faec62059a /Rakefile
parent7cf27dd96755216d14507bc6baeda3e50bbd64ea (diff)
downloadmixlib-log-0dee0929cf660f02e474ee488e54a37b15b8c79d.tar.gz
upgrade to rspec 2
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile23
1 files changed, 3 insertions, 20 deletions
diff --git a/Rakefile b/Rakefile
index ef1f701..62ca74b 100644
--- a/Rakefile
+++ b/Rakefile
@@ -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'