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