Permalink
Browse files

Upgraded Rakefile to Rspec 2.x

  • Loading branch information...
1 parent f0daaf1 commit 165a2ea4187dd9d9849559b8a097e082f4eda8b6 @joeyates committed Apr 11, 2012
Showing with 6 additions and 6 deletions.
  1. +6 −6 Rakefile
View
@@ -1,7 +1,7 @@
require 'rubygems' if RUBY_VERSION < '1.9'
require 'rake'
require 'rake/rdoctask'
-require 'spec/rake/spectask'
+require 'rspec/core/rake_task'
$:.unshift( File.dirname( __FILE__ ) + '/lib' )
require 'rake/builder'
@@ -11,13 +11,13 @@ RDOC_FILES = FileList[ 'COPYING', 'README.rdoc' ] +
FileList[ 'examples/**/Rakefile' ]
RDOC_OPTS = [ '--quiet', '--main', 'README.rdoc', '--inline-source' ]
-Spec::Rake::SpecTask.new do |t|
- t.spec_files = FileList[ 'spec/**/*_spec.rb' ]
- t.spec_opts += [ '--color', '--format specdoc' ]
+RSpec::Core::RakeTask.new do |t|
+ t.pattern = 'spec/**/*_spec.rb'
+ t.rspec_opts = [ '--color', '--format documentation' ]
end
-Spec::Rake::SpecTask.new( 'spec:rcov' ) do |t|
- t.spec_files = FileList[ 'spec/**/*_spec.rb' ]
+RSpec::Core::RakeTask.new( 'spec:rcov' ) do |t|
+ t.pattern = 'spec/**/*_spec.rb'
t.rcov = true
t.rcov_opts = [ '--exclude spec' ]
end

0 comments on commit 165a2ea

Please sign in to comment.