Sha256: 8f5249a4f2744f9232f2898985158edcf31950101495785467ec687578e75c04
Contents?: true
Size: 721 Bytes
Versions: 1
Compression:
Stored size: 721 Bytes
Contents
begin require 'spec' rescue LoadError require 'rubygems' require 'spec' end begin require 'spec/rake/spectask' rescue LoadError puts <<-EOS To use rspec for testing you must install rspec gem: gem install rspec EOS exit(0) end desc "Run the specs under spec/models" Spec::Rake::SpecTask.new do |t| t.spec_opts = ['--options', "spec/spec.opts"] t.spec_files = FileList['spec/**/*_spec.rb'] end if RUBY_VERSION.match(/^1\.8\./) desc 'Run all specs 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_dir = "coverage" t.rcov_opts = ['--exclude', 'spec'] end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rubyredrick-ri_cal-0.0.2 | tasks/spec.rake |