Skip to content

A platform for community discussion. Free, open, simple.

DEV: Fix the I18n integrity spec

Loïc Guitautab99f3176006
diff --git a/config/locales/server.en.yml b/config/locales/server.en.yml
index a0655d91095..b8ed26fc4d2 100644
--- a/config/locales/server.en.yml
+++ b/config/locales/server.en.yml
@@ -2685,6 +2685,7 @@ en:
page_loading_indicator: "Configure the loading indicator which appears during page navigations within Discourse. 'Spinner' is a full page indicator. 'Slider' shows a narrow bar at the top of the screen."
show_user_menu_avatars: "Show user avatars in the user menu"
view_raw_email_allowed_groups: "Groups which can view the raw email content of a post if it was created by an incoming email. This includes email headers and other technical information."
+ experimental_flags_admin_page_enabled_groups: "EXPERIMENTAL: Remove the Moderation Flags link from the admin sidebar."
errors:
invalid_css_color: "Invalid color. Enter a color name or hex value."
diff --git a/spec/integrity/i18n_spec.rb b/spec/integrity/i18n_spec.rb
index 1b50b7abec2..5d2aa3ad9a5 100644
--- a/spec/integrity/i18n_spec.rb
+++ b/spec/integrity/i18n_spec.rb
@@ -32,7 +32,7 @@ RSpec.describe "i18n integrity checks" do
it "has an i18n key for each Site Setting" do
SiteSetting.all_settings.each do |s|
next if s[:plugin] == SiteSetting::SAMPLE_TEST_PLUGIN.name
- expect(s[:description]).not_to match(/Translation missing/)
+ expect(s[:description]).not_to be_blank
end
end