Skip to content

Commit 52d0b72

Browse files
martinemdebbatsov
authored andcommitted
Try avoiding project_root leak to fix flaky error
1 parent 3d427bb commit 52d0b72

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

spec/rubocop/config_loader_spec.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,14 @@
99
described_class.debug = true
1010
# Force reload of default configuration
1111
described_class.default_configuration = nil
12+
RuboCop::ConfigFinder.project_root = nil
1213
end
1314

1415
after do
1516
described_class.debug = false
1617
# Remove custom configuration
1718
described_class.default_configuration = nil
19+
RuboCop::ConfigFinder.project_root = nil
1820
end
1921

2022
let(:default_config) { described_class.default_configuration }

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy