Skip to content

Commit 75be327

Browse files
authored
Merge pull request #1334 from Earlopain/cop-registry-deprecated
Don't use deprecated `Cop.registry` in specs
2 parents 7616bde + 9241cbe commit 75be327

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/project_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@
251251
end
252252

253253
let(:existing_cop_names) do
254-
RuboCop::Cop::Cop.registry.without_department(:Test).without_department(:Test2).cops.to_set(&:cop_name)
254+
RuboCop::Cop::Registry.global.reject { |cop| cop.cop_name.start_with?('Test/') }.to_set(&:cop_name)
255255
end
256256

257257
let(:legacy_cop_names) do

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