mirror of
https://github.com/rest-client/rest-client.git
synced 2022-11-09 13:49:40 -05:00
23 lines
515 B
Text
23 lines
515 B
Text
|
require 'rake'
|
||
|
require 'spec/rake/spectask'
|
||
|
|
||
|
desc "Run all specs"
|
||
|
Spec::Rake::SpecTask.new('spec') do |t|
|
||
|
t.spec_files = FileList['spec/*_spec.rb']
|
||
|
end
|
||
|
|
||
|
desc "Print specdocs"
|
||
|
Spec::Rake::SpecTask.new(:doc) do |t|
|
||
|
t.spec_opts = ["--format", "specdoc", "--dry-run"]
|
||
|
t.spec_files = FileList['spec/*_spec.rb']
|
||
|
end
|
||
|
|
||
|
desc "Run all examples with RCov"
|
||
|
Spec::Rake::SpecTask.new('rcov') do |t|
|
||
|
t.spec_files = FileList['spec/*_spec.rb']
|
||
|
t.rcov = true
|
||
|
t.rcov_opts = ['--exclude', 'examples']
|
||
|
end
|
||
|
|
||
|
task :default => :spec
|