mirror of
https://github.com/internetee/registry.git
synced 2025-07-21 18:26:06 +02:00
Add integration tests for Bounces API
This commit is contained in:
parent
101d5d4a78
commit
6a93395fa4
2 changed files with 77 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue