Fix restore notifications from admins page

The restore feature was not working properly. When pushed, the button
was removing the notification from the admins panel, but it was not
restoring in the proposal.

I added an `after_restore` function (that I missed in the first PR)
so that the notification is unmarked as moderated.
This commit is contained in:
iagirre
2018-05-30 16:02:37 +02:00
committed by decabeza
parent 0fb7d13229
commit 894c5d1eca
2 changed files with 5 additions and 0 deletions

View File

@@ -25,6 +25,7 @@ feature 'Admin proposal notifications' do
expect(proposal_notification.reload).not_to be_hidden
expect(proposal_notification).to be_ignored
expect(proposal_notification).not_to be_moderated
end
scenario 'Confirm hide' do