[openstreetmap/openstreetmap-website] Add user block api call (PR #4301)
Anton Khorev
notifications at github.com
Sat Oct 21 16:22:58 UTC 2023
@AntonKhorev commented on this pull request.
>
get api_user_block_path(:id => block)
assert_response :success
- assert_select "user_block[id='#{block.id}']", 1
+ assert_select "osm>user_block", 1
+ assert_select "osm>user_block>@id", block.id.to_s
+ assert_select "osm>user_block>user", 1
+ assert_select "osm>user_block>user>@uid", blocked_user.id.to_s
+ assert_select "osm>user_block>creator", 1
+ assert_select "osm>user_block>creator>@uid", creator_user.id.to_s
+ assert_select "osm>user_block>revoker", 0
+ assert_select "osm>user_block>reason", 1
+ assert_select "osm>user_block>reason", "because running tests"
updated
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/4301#discussion_r1367755598
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/4301/review/1691286188 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20231021/40a670ad/attachment.htm>
More information about the rails-dev
mailing list