From 64df98e34851689241670de1614feb852fca0cd0 Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Tue, 12 Apr 2016 12:55:49 -0400 Subject: [PATCH] Adds integrity check for badge descriptions --- spec/integrity/i18n_spec.rb | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/spec/integrity/i18n_spec.rb b/spec/integrity/i18n_spec.rb index c7311b3d4..099dd93ce 100644 --- a/spec/integrity/i18n_spec.rb +++ b/spec/integrity/i18n_spec.rb @@ -16,6 +16,13 @@ describe "i18n integrity checks" do 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 Notification.types.each_key do |type| next if type == :custom || type == :group_message_summary