require 'rubygems' require 'spec/rake/spectask' Spec::Rake::SpecTask.new do |t| t.spec_files = FileList['spec/**/*_spec.rb'] end Spec::Rake::SpecTask.new(:coverage) do |t| t.spec_files = FileList['spec/**/*_spec.rb'] t.rcov = true t.rcov_opts = ['-x', 'spec,gems'] end desc "Default task is to run specs" task :default => :spec