Skip to content
This repository was archived by the owner on Nov 30, 2024. It is now read-only.

Fix simplecov source file filter #481

Merged
merged 1 commit into from
Dec 31, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/rspec/support/spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ def self.setup_simplecov(&block)

def self.start_simplecov(&block)
SimpleCov.start do
add_filter "./bundle/"
add_filter "./tmp/"
add_filter "bundle/"
add_filter "tmp/"
add_filter do |source_file|
# Filter out `spec` directory except when it is under `lib`
# (as is the case in rspec-support)
Expand Down