Hide legislation proposals when blocking a user

We're also updating the notice messages to specify all contents have
been hidden (not just debates).
This commit is contained in:
Javi Martín
2021-12-02 03:38:33 +01:00
parent 021fef07b6
commit 76555495f6
6 changed files with 32 additions and 5 deletions

View File

@@ -30,7 +30,7 @@ describe Moderation::UsersController do
put :block, params: { id: user }
expect(response).to redirect_to proposals_path
expect(flash[:notice]).to eq "User blocked. All of this user's debates and comments have been hidden."
expect(flash[:notice]).to eq "The user has been blocked. All contents authored by this user have been hidden."
end
it "redirects to the index with a nested resource" do