[openstreetmap/openstreetmap-website] Add revoke all blocks moderator action (PR #4440)
Anton Khorev
notifications at github.com
Sun Jan 7 12:19:20 UTC 2024
@AntonKhorev commented on this pull request.
> + create(:user_block, :user => blocked_user)
+
+ visit user_path(blocked_user)
+ assert_no_link "Revoke all blocks"
+ end
+
+ test "revoke all link is absent for regular users when viewed user has active blocks" do
+ blocked_user = create(:user)
+ create(:user_block, :user => blocked_user)
+ sign_in_as(create(:user))
+
+ visit user_path(blocked_user)
+ assert_no_link "Revoke all blocks"
+ end
+
+ test "revoke all link is present for moderators when viewed user has no active blocks" do
fixed
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/4440#discussion_r1443994931
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/4440/review/1807795935 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20240107/2183f1f2/attachment.htm>
More information about the rails-dev
mailing list