14 lines
314 B
Ruby
14 lines
314 B
Ruby
require 'spec/rake/spectask'
|
|
Spec::Rake::SpecTask.new(:spec) do |spec|
|
|
spec.libs << 'lib' << 'spec'
|
|
spec.spec_files = FileList['spec/**/*_spec.rb']
|
|
end
|
|
|
|
Spec::Rake::SpecTask.new(:rcov) do |spec|
|
|
spec.libs << 'lib' << 'spec'
|
|
spec.pattern = 'spec/**/*_spec.rb'
|
|
spec.rcov = true
|
|
end
|
|
|
|
task :default => :spec
|