Skip to content

Commit 3291d7a

Browse files
committed
Improve SimpleCov config
1 parent ff7cd3e commit 3291d7a

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

spec/spec_helper.rb

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
require 'simplecov'
22

3-
# Configure SimpleCov
4-
SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter.new([
5-
SimpleCov::Formatter::HTMLFormatter,
6-
])
7-
8-
SimpleCov.start
3+
# Start SimpleCov
4+
SimpleCov.start do
5+
add_filter 'spec/'
6+
end
97

108
# SimpleNavigation currently only works for Rails, Sinatra and Padrino apps
119
# This is a workaround to be able to test the lib

0 commit comments

Comments
 (0)