Skip to content

Commit

Permalink
Merge pull request rubocop#1334 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 22, 2024
2 parents 7616bde + 9241cbe commit 75be327
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 @@ -251,7 +251,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 75be327

Please sign in to comment.