Permalink
Browse files

removing non needed stuff

  • Loading branch information...
fabiokung committed Jun 25, 2009
1 parent 2ac8c2e commit 2e2efbcddde04c51bc83d7ed941da3690c5fa936
Showing with 6 additions and 13 deletions.
  1. +6 −13 tasks/rspec.rake
@@ -1,3 +1,9 @@
begin
require 'spec'
rescue LoadError
require 'rubygems' unless ENV['NO_RUBYGEMS']
require 'spec'
end
begin
require 'spec/rake/spectask'
rescue LoadError
@@ -28,16 +34,3 @@ Spec::Rake::SpecTask.new('spec_report') do |t|
t.spec_files = FileList['spec/**/*_spec.rb']
t.fail_on_error = false
end

# credits to http://blog.jayfields.com/2008/02/rake-task-overwriting.html
class Rake::Task
def overwrite(&block)
@actions.clear
prerequisites.clear
enhance(&block)
end
end

Rake::Task['test'].overwrite do
Rake::Task['spec'].invoke
end

0 comments on commit 2e2efbc

Please sign in to comment.