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/6...@github.com>
_______________________________________________
rails-dev mailing list
rails-dev@openstreetmap.org
https://lists.openstreetmap.org/listinfo/rails-dev

Reply via email to