Update Rakefile to use latest rspec.

This commit is contained in:
Davide D'Agostino 2011-05-16 10:50:22 +02:00
parent 14e96367a5
commit f8769400b6

View file

@ -1,23 +1,20 @@
require 'rubygems' require 'rubygems'
require 'bundler' require 'bundler'
Bundler::GemHelper.install_tasks require 'rspec/core/rake_task'
require 'rake'
require "rake/rdoctask" require "rake/rdoctask"
require 'rspec' Bundler::GemHelper.install_tasks
require 'rspec/core/rake_task'
desc "Run all specs" desc "Run all specs"
Rspec::Core::RakeTask.new(:spec) do |spec| RSpec::Core::RakeTask.new(:spec) do |spec|
spec.rspec_opts = ["--color"] spec.rspec_opts = ["--color"]
spec.pattern = 'spec/**/*_spec.rb' spec.pattern = 'spec/**/*_spec.rb'
end end
desc "Print specdocs" desc "Print specdocs"
Rspec::Core::RakeTask.new(:doc) do |spec| RSpec::Core::RakeTask.new(:doc) do |spec|
spec.rspec_opts = ["--format", "specdoc"] spec.rspec_opts = ["--format", "specdoc"]
spec.pattern = 'spec/*_spec.rb' spec.pattern = 'spec/*_spec.rb'
end end
desc "Generate the rdoc" desc "Generate the rdoc"
@ -38,4 +35,4 @@ module Rake
end end
Rake.remove_task("github:release") Rake.remove_task("github:release")
Rake.remove_task("release") Rake.remove_task("release")