Skip to content

Commit

Permalink
Merge pull request #457 from Earlopain/cop-registry-deprecated
Browse files Browse the repository at this point in the history
Don't use deprecated `Cop.registry` in specs
  • Loading branch information
koic authored Aug 21, 2024
2 parents d92287f + 40b2c2c commit 47c0de5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/project_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@
end

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

let(:legacy_cop_names) do
Expand Down

0 comments on commit 47c0de5

Please sign in to comment.