FIX: Make set_locale an around_action to avoid leaking between requests (#10282)

This commit is contained in:
David Taylor
2020-07-22 17:30:26 +01:00
committed by GitHub
parent 723d7e3a61
commit bcb0e62363
4 changed files with 136 additions and 111 deletions

View File

@@ -533,8 +533,8 @@ RSpec.describe Admin::SiteTextsController do
}
expect(response.status).to eq(200)
expect(Category.find(SiteSetting.staff_category_id).name).to eq(I18n.t("staff_category_name"))
expect(Topic.find(SiteSetting.guidelines_topic_id).title).to eq(I18n.t("guidelines_topic.title"))
expect(Category.find(SiteSetting.staff_category_id).name).to eq(I18n.t("staff_category_name", locale: :de))
expect(Topic.find(SiteSetting.guidelines_topic_id).title).to eq(I18n.t("guidelines_topic.title", locale: :de))
end
end
end