Permalink
Browse files

adapt to rspec2

  • Loading branch information...
1 parent 0d8923d commit ea85bffb61f7fbec849b27bb07cc92bb8e9c4518 @rn-superg rn-superg committed Mar 18, 2012
Showing with 5 additions and 5 deletions.
  1. +5 −5 Rakefile
View
10 Rakefile
@@ -1,25 +1,25 @@
require 'rubygems'
require 'rake'
require 'rubygems/package_task'
-require 'spec/rake/spectask'
+require 'rspec/core/rake_task'
load 'jrclj.gemspec'
SPEC_FILES = FileList['spec/*_spec.rb']
task :default => :spec
desc "Run all specs"
-Spec::Rake::SpecTask.new('spec') do |t|
+RSpec::Core::RakeTask.new('spec') do |t|
$:.push "#{File.dirname(__FILE__)}/lib"
Dir["#{File.dirname(__FILE__)}/deps/*.jar"].each do |jar|
require jar
end
- t.spec_files = SPEC_FILES
+ t.pattern = 'spec/*_spec.rb'
end
desc "Run rcov"
-Spec::Rake::SpecTask.new('rcov') do |t|
- t.spec_files = SPEC_FILES
+RSpec::Core::RakeTask.new('rcov') do |t|
+ t.pattern = 'spec/*_spec.rb'
t.rcov = true
t.rcov_opts = ['--exclude', 'spec']
end

0 comments on commit ea85bff

Please sign in to comment.