mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-02-24 23:44:09 -05:00
Adds integrity check for badge descriptions
This commit is contained in:
parent
5518141ad5
commit
64df98e348
1 changed files with 7 additions and 0 deletions
|
@ -16,6 +16,13 @@ describe "i18n integrity checks" do
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
it "has an i18n key for each badge description" do
|
||||||
|
Badge.where(system: true).each do |b|
|
||||||
|
expect(b.long_description).to be_present
|
||||||
|
expect(b.description).to be_present
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
it "needs an i18n key (notification_types) for each Notification type" do
|
it "needs an i18n key (notification_types) for each Notification type" do
|
||||||
Notification.types.each_key do |type|
|
Notification.types.each_key do |type|
|
||||||
next if type == :custom || type == :group_message_summary
|
next if type == :custom || type == :group_message_summary
|
||||||
|
|
Loading…
Reference in a new issue