Skip to content

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

DEV: Fix flaky spec related to translation overrides

Loïc Guitautedc6b6f26ce2
diff --git a/spec/models/translation_override_spec.rb b/spec/models/translation_override_spec.rb
index 902534e998e..f1cb27eaef0 100644
--- a/spec/models/translation_override_spec.rb
+++ b/spec/models/translation_override_spec.rb
@@ -401,7 +401,7 @@ RSpec.describe TranslationOverride do
it "updates its original translation to match the current default" do
expect { override.make_up_to_date! }.to change { override.reload.original_translation }.to(
- I18n.t("js.posts_likes_MF"),
+ I18n.overrides_disabled { I18n.t("js.posts_likes_MF") },
)
end