mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 07:53:49 +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:
@ -17,6 +17,8 @@ RSpec.describe Plugin::Instance do
|
||||
some_ruby
|
||||
TEXT
|
||||
|
||||
around { |example| allow_missing_translations(&example) }
|
||||
|
||||
after { DiscoursePluginRegistry.reset! }
|
||||
|
||||
# NOTE: sample_plugin_site_settings.yml is always loaded in tests in site_setting.rb
|
||||
|
Reference in New Issue
Block a user