mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 03:51:07 +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:
@ -330,6 +330,8 @@ RSpec.describe SiteSettingExtension do
|
||||
|
||||
describe "string setting with regex" do
|
||||
it "Supports custom validation errors" do
|
||||
I18n.backend.store_translations(:en, { oops: "oops" })
|
||||
|
||||
settings.setting(:test_str, "bob", regex: "hi", regex_error: "oops")
|
||||
settings.refresh!
|
||||
|
||||
|
Reference in New Issue
Block a user