Rakefile in rubypython-0.3.1 vs Rakefile in rubypython-0.3.2

- old
+ new

@@ -1,15 +1,17 @@ -require 'spec/rake/spectask' +require 'rspec/core/rake_task' require 'yard' desc "Run all examples" -Spec::Rake::SpecTask.new('spec') do |t| - t.spec_files = FileList['spec/**/*_spec.rb'] +RSpec::Core::RakeTask.new('spec') do |t| + t.pattern = 'spec/**/*_spec.rb' + t.rspec_opts = '-t ~@slow' unless ENV['filter'] == 'none' end desc "Run all examples with RCov" -Spec::Rake::SpecTask.new('spec:rcov') do |t| - t.spec_files = FileList['spec/**/*.rb'] +RSpec::Core::RakeTask.new('spec:rcov') do |t| + t.pattern = 'spec/**/*.rb' + t.rspec_opts = '--tag ~slow:true' unless ENV['filter'] == 'none' t.rcov = true t.rcov_opts = ['--exclude', 'spec'] end YARD::Rake::YardocTask.new do |t|