Add tests for admin bounced mails views

This commit is contained in:
Karl Erik Õunapuu 2020-09-18 16:17:42 +03:00
parent 64308e1104
commit 101d5d4a78
No known key found for this signature in database
GPG key ID: C9DD647298A34764
5 changed files with 82 additions and 15 deletions

View file

@ -26,15 +26,5 @@ module Admin
def set_bounced_mail_address
@bounced_mail_address = BouncedMailAddress.find(params[:id])
end
# Only allow a trusted parameter "white list" through.
def bounced_mail_address_params
params.require(:bounced_mail_address).permit(
:email,
:bounce_reason,
:incidents,
:response_json
)
end
end
end