Sha256: 9f940a9c6fd76b7a5a8c145c5fb9cbb87edcd83f372f28d05fcb154a7f057e4f
Contents?: true
Size: 588 Bytes
Versions: 16
Compression:
Stored size: 588 Bytes
Contents
['rubygems', 'rspec', 'rspec/core/rake_task', 'rcov',].each do |lib| begin require lib rescue LoadError end end if defined?(RSpec::Core::RakeTask) desc "Run all specs" RSpec::Core::RakeTask.new do |t| t.pattern ='spec/{unit,integration}/**/*_spec.rb' t.fail_on_error = true end RSpec::Core::RakeTask.new('spec:rcov') do |t| t.pattern ='spec/{unit,integration}/**/*_spec.rb' t.fail_on_error = true if defined?(Rcov) t.rcov = true t.rcov_opts = ['--exclude', 'spec/*,test/*,results/*,/usr/lib/*,/usr/local/lib/*,gems/*'] end end end
Version data entries
16 entries across 16 versions & 2 rubygems