Make action names to block and hide more clear
The `hide` action was calling the `block` method while the `soft_block` action was calling the `hide` method. Combined with the fact that we also have a `block` permission which is used in `ModerateActions` the logic was hard to follow.
This commit is contained in:
@@ -217,7 +217,7 @@ describe "Admin activity" do
|
||||
visit proposal_path(proposal)
|
||||
|
||||
within("#proposal_#{proposal.id}") do
|
||||
accept_confirm("Are you sure? Hide author \"#{proposal.author.name}\"") { click_link "Hide author" }
|
||||
accept_confirm("Are you sure? Block author \"#{proposal.author.name}\"") { click_link "Block author" }
|
||||
|
||||
expect(page).to have_current_path(proposals_path)
|
||||
end
|
||||
|
||||
@@ -13,7 +13,7 @@ describe "Admin hidden comments", :admin do
|
||||
visit proposal_path(proposal)
|
||||
|
||||
within("#proposal_#{proposal.id}") do
|
||||
accept_confirm("Are you sure? Hide author \"#{proposal.author.name}\"") { click_link "Hide author" }
|
||||
accept_confirm("Are you sure? Block author \"#{proposal.author.name}\"") { click_link "Block author" }
|
||||
end
|
||||
|
||||
expect(page).to have_current_path proposals_path
|
||||
|
||||
Reference in New Issue
Block a user