[openstreetmap/openstreetmap-website] Add revoke all blocks moderator action (PR #4440)
Tom Hughes
notifications at github.com
Sun Jan 7 10:38:28 UTC 2024
@tomhughes requested changes 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
I think you meant `absent` in that description ;-)
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/4440#pullrequestreview-1807781016
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/4440/review/1807781016 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20240107/7821c0c4/attachment.htm>
More information about the rails-dev
mailing list