[openstreetmap/openstreetmap-website] Allow to edit revoked blocks (PR #5016)

Tom Hughes notifications at github.com
Thu Jul 25 16:05:37 UTC 2024


@tomhughes requested changes on this pull request.



> +    assert_redirected_to edit_user_block_path(block)
+    assert_equal "Only the moderators who created or revoked this block can edit it.", flash[:error]
+    block.reload
+    assert_not_predicate block, :active?
+    assert_equal "Original Reason", block.reason
+
+    session_for(creator_user)
+    check_block_updates(block)
+
+    session_for(revoker_user)
+    check_block_updates(block)
+  end
+
+  private
+
+  def check_block_updates(block)

Can we move this to the end with the other private methods rather than switching back and forth between public and private?

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/5016#pullrequestreview-2199758166
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/pull/5016/review/2199758166 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20240725/abaafe60/attachment.htm>


More information about the rails-dev mailing list