mirror of
https://github.com/discourse/discourse.git
synced 2025-05-24 01:57:15 +08:00
DEV: Catch missing translations during test runs (#26258)
This configuration makes it so that a missing translation will raise an error during test execution. Better discover there than after deploy.
This commit is contained in:
@ -41,6 +41,19 @@ describe DiscourseAutomation::AutomationSerializer do
|
||||
DiscourseAutomation::Scriptable.add("foo") do
|
||||
field :bar, component: :text, triggerable: DiscourseAutomation::Triggers::TOPIC
|
||||
end
|
||||
I18n.backend.store_translations(
|
||||
:en,
|
||||
{
|
||||
discourse_automation: {
|
||||
scriptables: {
|
||||
foo: {
|
||||
title: "Something about us.",
|
||||
description: "We rock!",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
)
|
||||
end
|
||||
|
||||
context "when automation is not using the specific trigger" do
|
||||
|
Reference in New Issue
Block a user