Sha256: c02927cb3211b8385bffb7610799c0be593a1ee55d59b46a23865d16a5953613
Contents?: true
Size: 833 Bytes
Versions: 14
Compression:
Stored size: 833 Bytes
Contents
begin require 'spec/rake/spectask' begin require 'rcov' rescue LoadError warn "RCov gem is required, please install it (gem install rcov)." end rescue LoadError warn "RSpec gem is required, please install it (gem install rspec)." end if defined?(Spec) Spec::Rake::SpecTask.new(:spec) do |t| t.spec_opts = ["--options", "spec/spec.opts"] t.spec_files = FileList["spec/**/*_spec.rb"] end if defined?(Rcov) CLOBBER.include('coverage') namespace :spec do desc "Run all specs in spec directory with RCov" Spec::Rake::SpecTask.new(:rcov) do |t| t.spec_opts = ["--options", "spec/spec.opts"] t.spec_files = FileList["spec/**/*_spec.rb"] t.rcov = true t.rcov_opts = ["--exclude", "spec/*,features/*,gems/*"] end end end end
Version data entries
14 entries across 14 versions & 2 rubygems