mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 22:43:33 +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:
@ -3,7 +3,10 @@
|
||||
require_relative "../../../script/import_scripts/base"
|
||||
|
||||
RSpec.describe ImportScripts::Base do
|
||||
before { STDOUT.stubs(:write) }
|
||||
before do
|
||||
I18n.backend.store_translations(:en, { test: "Test" })
|
||||
STDOUT.stubs(:write)
|
||||
end
|
||||
|
||||
class MockSpecImporter < ImportScripts::Base
|
||||
def initialize(data)
|
||||
|
Reference in New Issue
Block a user