[openstreetmap/openstreetmap-website] Upgrade to rails 7.1.0 (PR #4278)
Tom Hughes
notifications at github.com
Wed Oct 11 16:05:14 UTC 2023
@tomhughes commented on this pull request.
> @@ -138,7 +138,7 @@ def test_create_invalid_xml
xml = "<osm><node lat='#{lat}' lon='#{lon}' changeset='#{changeset.id}'><tag k='foo' v='#{'x' * 256}'/></node></osm>"
put node_create_path, :params => xml, :headers => auth_header
assert_response :bad_request, "node upload did not return bad_request status"
- assert_equal ["NodeTag ", " v: is too long (maximum is 255 characters) (\"#{'x' * 256}\")"], @response.body.split(/[0-9]+,foo:/)
It's CPK related - the new rails support manages to include the node ID and version in the message while with the old CPK module it failed to add the ID and you just got a space in the message. As the ID can vary it was easy just to match the message which is what we care about.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/4278#discussion_r1355309314
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/4278/review/1671751076 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20231011/cef052f1/attachment.htm>
More information about the rails-dev
mailing list