[openstreetmap/openstreetmap-website] Protect I18n.locale around tests which may change it (PR #6077)
Tom Hughes
notifications at github.com
Sun Jun 1 19:35:26 UTC 2025
Avoid accidental changes to `I18n.locale` when a request is made as a logged in user with a different language preference.
Fixes #6075.
You can view, comment on, or merge this pull request online at:
https://github.com/openstreetmap/openstreetmap-website/pull/6077
-- Commit Summary --
* Protect I18n.locale around tests which may change it
-- File Changes --
M test/controllers/preferences/advanced_preferences_controller_test.rb (20)
M test/controllers/preferences/basic_preferences_controller_test.rb (24)
-- Patch Links --
https://github.com/openstreetmap/openstreetmap-website/pull/6077.patch
https://github.com/openstreetmap/openstreetmap-website/pull/6077.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/6077
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/6077 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250601/f1de908b/attachment.htm>
More information about the rails-dev
mailing list