[openstreetmap/openstreetmap-website] Fix some exceptions in user profile updates (PR #7382)
Tom Hughes
notifications at github.com
Tue Sep 15 08:05:18 UTC 2026
@tomhughes commented on this pull request.
> @@ -51,6 +51,17 @@ def test_update_replace
assert_dom "form > div > div.col-sm-10 > div.form-check > input[name=avatar_action][checked][value=?]", "keep"
end
+ def test_update_replace_no_image
+ user = create(:user)
+ session_for(user)
+
+ put profile_image_path, :params => { :avatar_action => "new" }
Even the routing test at the top is only testing for the PUT method...
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/7382#discussion_r4013393061
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/7382/review/5207233472 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20260915/fa36742f/attachment-0001.htm>
More information about the rails-dev
mailing list