spec/spec_helper.rb in lucid-0.2.1 vs spec/spec_helper.rb in lucid-0.3.0
- old
+ new
@@ -1,13 +1,19 @@
$LOAD_PATH.unshift(File.dirname(__FILE__))
require 'coveralls'
Coveralls.wear!
-if ENV['SIMPLECOV']
- require 'simplecov'
- SimpleCov.start do
- command_name 'rspec'
- end
+SimpleCov.add_filter '/spec'
+
+SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
+ SimpleCov::Formatter::HTMLFormatter,
+ Coveralls::SimpleCov::Formatter
+]
+
+SimpleCov.at_exit do
+ SimpleCov.result.format!
+ SimpleCov.minimum_coverage 60
+ SimpleCov.maximum_coverage_drop 5
end
require 'lucid'
\ No newline at end of file