Add revoke all blocks link

This commit is contained in:
Anton Khorev 2023-12-27 18:16:57 +03:00
parent f73b7205f4
commit 8682b58154
6 changed files with 55 additions and 1 deletions

View file

@ -54,6 +54,14 @@ class UserBlocksControllerTest < ActionDispatch::IntegrationTest
{ :path => "/user/username/blocks_by", :method => :get },
{ :controller => "user_blocks", :action => "blocks_by", :display_name => "username" }
)
assert_routing(
{ :path => "/user/username/blocks/revoke_all", :method => :get },
{ :controller => "user_blocks", :action => "revoke_all", :display_name => "username" }
)
assert_routing(
{ :path => "/user/username/blocks/revoke_all", :method => :post },
{ :controller => "user_blocks", :action => "revoke_all", :display_name => "username" }
)
end
##