Sha256: 4c51ad16a0ff295617aa67e6920360fb783e3cda4f7fe278f001567323d75faa
Contents?: true
Size: 908 Bytes
Versions: 4
Compression:
Stored size: 908 Bytes
Contents
spec_defaults = lambda do |spec| spec.pattern = 'spec/**/*_spec.rb' spec.libs << 'lib' << 'spec' spec.spec_opts << '--options' << 'spec/spec.opts' end begin require 'spec/rake/spectask' Spec::Rake::SpecTask.new(:spec, &spec_defaults) rescue LoadError task :spec do abort 'rspec is not available. In order to run spec, you must: gem ' \ 'install rspec' end end begin require 'rcov' require 'spec/rake/verify_rcov' Spec::Rake::SpecTask.new(:rcov) do |rcov| spec_defaults.call(rcov) rcov.rcov = true rcov.rcov_opts = File.read('spec/rcov.opts').split(/\s+/) end RCov::VerifyTask.new('rcov:verify' => :rcov) do |rcov| rcov.threshold = 100 end rescue LoadError %w(rcov rcov:verify).each do |name| task name do abort "rcov is not available. In order to run #{name}, you must: gem " \ "install rcov" end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
dm-mongo-adapter-0.6.0 | tasks/spec.rake |
dm-mongo-adapter-0.2.0.pre3 | tasks/spec.rake |
dm-mongo-adapter-0.2.0.pre2 | tasks/spec.rake |
dm-mongo-adapter-0.2.0.pre1 | tasks/spec.rake |