Add revoke all blocks link
This commit is contained in:
parent
f73b7205f4
commit
8682b58154
6 changed files with 55 additions and 1 deletions
|
@ -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
|
||||
|
||||
##
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue