Skip to content

Commit

Permalink
Merge pull request #13006 from Earlopain/changelog-cop-department
Browse files Browse the repository at this point in the history
Add a spec for the changelog that cops in backticks have a department
  • Loading branch information
koic committed Jun 19, 2024
2 parents eeb6042 + a50e6b0 commit d183144
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions spec/project_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,16 @@ def expected
end
end
end

it 'has cops in backticks with department', :aggregate_failures do
cop_names_without_department = allowed_cop_names.map { |name| name.split('/').last }
entries.each do |entry|
entry.scan(/`([A-Z]\w+)`/) do |cop_name, *|
expect(cop_names_without_department.include?(cop_name))
.to be(false), "Missing department for #{cop_name}."
end
end
end
end
end
end
Expand Down

0 comments on commit d183144

Please sign in to comment.