diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 47fad70..d2526de 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -3,7 +3,12 @@ if ENV['CI'] && RUBY_ENGINE != 'rbx' # coverage is extremely slow on Rubinius require 'simplecov' - SimpleCov.start + SimpleCov.start do + # Only cover lib/. Omit spec/railsapps. + add_filter do |src| + src.filename !~ %r{/lib/roadie/rails} + end + end require 'codecov' SimpleCov.formatter = SimpleCov::Formatter::Codecov