Add integration tests for Bounces API

This commit is contained in:
Karl Erik Õunapuu 2020-09-21 11:37:31 +03:00
parent 101d5d4a78
commit 6a93395fa4
No known key found for this signature in database
GPG key ID: C9DD647298A34764
2 changed files with 77 additions and 0 deletions

View file

@ -5,6 +5,8 @@ module Api
# POST api/v1/bounces/
def create
return head(:bad_request) unless bounce_params[:bounce][:bouncedRecipients].any?
BouncedMailAddress.record(bounce_params)
head(:created)
rescue ActionController::ParameterMissing