openstreetmap-website/test/controllers
Andy Allan 24f6aeda6a Use hash-based flash objects to render complex flash messages
Since flash objects can only be String, Hash or Array (notably excluding SafeBuffers), then this approach is necessary to render complex html in a safe manner.

Each local can be treated as an (unsafe) string, and therefore escaped normally when rendered into the template. The template (and translation strings) can
contain html since they are no longer stored in the flash as a plain string.

Fixes #3215
2021-06-23 20:10:55 +01:00
..
api Fix new rubocop warnings 2021-04-20 18:29:41 +01:00
browse_controller_test.rb Add test for browsing a note closed by a deleted user 2020-05-06 18:06:45 +01:00
changeset_comments_controller_test.rb Refactor some more controller tests 2020-04-22 16:45:16 +02:00
changesets_controller_test.rb Use login_path instead of explicit controller and actions 2021-03-10 14:31:55 +00:00
confirmations_controller_test.rb Use hash-based flash objects to render complex flash messages 2021-06-23 20:10:55 +01:00
diary_entries_controller_test.rb Display no diary comments message when empty 2021-04-10 00:47:20 +01:00
directions_controller_test.rb Refactor some more controller tests 2020-04-22 16:45:16 +02:00
errors_controller_test.rb Refactor some more controller tests 2020-04-22 16:45:16 +02:00
export_controller_test.rb Refactor more controller tests 2020-04-26 20:33:06 +01:00
friendships_controller_test.rb Move make_friend and remove_friend to friendships controller 2020-06-03 18:23:07 +02:00
geocoder_controller_test.rb Fix new rubocop warnings 2021-01-11 19:17:31 +00:00
issue_comments_controller_test.rb Refactor more controller tests 2020-04-26 20:33:06 +01:00
issues_controller_test.rb Refactor more controller tests 2020-04-26 20:33:06 +01:00
messages_controller_test.rb Refactor more controller tests 2020-04-26 20:33:06 +01:00
notes_controller_test.rb Display no notes message when empty 2021-04-09 19:21:09 +01:00
oauth_clients_controller_test.rb Refactor more controller tests 2020-04-26 22:56:18 +01:00
oauth_controller_test.rb Refactor more controller tests 2020-04-26 22:56:18 +01:00
passwords_controller_test.rb Split password reset functionality into PasswordsController 2021-04-07 16:05:28 +01:00
redactions_controller_test.rb Refactor more controller tests 2020-04-26 22:56:18 +01:00
reports_controller_test.rb Refactor more controller tests 2020-04-26 22:56:18 +01:00
sessions_controller_test.rb Move sessions-related tests out of UsersControllerTest 2021-03-24 11:40:17 +00:00
site_controller_test.rb Use login_path instead of explicit controller and actions 2021-03-10 14:31:55 +00:00
traces_controller_test.rb Use list-inline to achieve spacing between elements on a line 2021-03-17 18:57:36 +00:00
user_blocks_controller_test.rb Prevent CSRF bypass unblocking users 2021-02-09 20:39:04 +00:00
user_roles_controller_test.rb Refactor more controller tests 2020-04-27 22:24:28 +01:00
users_controller_test.rb Move confirmation methods into ConfirmationsController 2021-04-07 16:05:32 +01:00