DEV: Fix flaky test due to locale cache poisoning

A follow-up to #13322
This commit is contained in:
Jarek Radosz 2021-06-08 05:13:38 +02:00 committed by GitHub
parent 0fe9a36e89
commit 0815b4cc2e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -4,6 +4,10 @@ require 'rails_helper'
describe TrustLevelSetting do
describe ".values" do
after do
I18n.reload!
end
it "returns translated names" do
TranslationOverride.upsert!(I18n.locale, "js.trust_levels.names.newuser", "New Member")