Exclude /spec/ from code coverage.

Weirdly, on coveralls.io, only Rubinius (rbx-19mode) shows a 1%
lack in coverage due to a line in docile_spec.rb. This should
ensure that the spec files are never measured for code coverage.
This commit is contained in:
Marc Siegel 2013-07-07 19:09:04 -04:00
parent 2f6367e4e6
commit f4ae46b326
1 changed files with 3 additions and 1 deletions

View File

@ -9,7 +9,9 @@ SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
SimpleCov::Formatter::HTMLFormatter,
Coveralls::SimpleCov::Formatter
]
SimpleCov.start
SimpleCov.start do
add_filter "/spec/"
end
test_dir = File.dirname(__FILE__)
$LOAD_PATH.unshift test_dir unless $LOAD_PATH.include?(test_dir)