Rakefile in Overbryd-mighty-mite-0.1.1 vs Rakefile in Overbryd-mighty-mite-0.1.2
- old
+ new
@@ -14,10 +14,19 @@
end
rescue LoadError
puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
end
-require 'spec/rake/spectask'
task :spec do
sh "spec spec/unit/* --format specdoc --color"
end
-task :default => :spec
+task :default => :spec
+
+task :rcov do
+ sh "rake run_rcov && open coverage/index.html"
+end
+require 'spec/rake/spectask'
+Spec::Rake::SpecTask.new(:run_rcov) do |spec|
+ spec.libs << 'lib' << 'spec'
+ spec.pattern = 'spec/**/*_spec.rb'
+ spec.rcov = true
+end
\ No newline at end of file