Skip to content

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

DEV: Check existence of `wizard_js` only in `client.en.yml` (#36349)

Gerhard Schlager2421612d9016
diff --git a/spec/integrity/i18n_spec.rb b/spec/integrity/i18n_spec.rb
index 5d2aa3ad9a5..440cccb9f33 100644
--- a/spec/integrity/i18n_spec.rb
+++ b/spec/integrity/i18n_spec.rb
@@ -63,11 +63,8 @@ RSpec.describe "i18n integrity checks" do
expect(yaml.keys).to eq([locale])
expect(yaml[locale]["js"]).to be
-
- if !LocaleSiteSetting.fallback_locale(locale)
- expect(yaml[locale]["admin_js"]).to be
- expect(yaml[locale]["wizard_js"]).to be
- end
+ expect(yaml[locale]["admin_js"]).to be unless LocaleSiteSetting.fallback_locale(locale)
+ expect(yaml[locale]["wizard_js"]).to be if locale == "en"
end
end