-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
23 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,7 +25,8 @@ def setup | |
}, | ||
tags: EbanxGateway::TAGS, | ||
soft_descriptor: 'ActiveMerchant', | ||
email: '[email protected]' | ||
email: '[email protected]', | ||
processing_type: 'local' | ||
} | ||
|
||
@hiper_card = credit_card('6062825624254001') | ||
|
@@ -153,7 +154,7 @@ def test_successful_partial_capture_when_include_capture_amount_is_not_passed | |
auth = @gateway.authorize(@amount, @credit_card, @options) | ||
assert_success auth | ||
|
||
assert capture = @gateway.capture(@amount - 1, auth.authorization) | ||
assert capture = @gateway.capture(@amount - 1, auth.authorization, { processing_type: 'local' }) | ||
assert_success capture | ||
end | ||
|
||
|
@@ -168,7 +169,7 @@ def test_failed_partial_capture_when_include_capture_amount_is_passed | |
end | ||
|
||
def test_failed_capture | ||
response = @gateway.capture(@amount, '') | ||
response = @gateway.capture(@amount, '', { processing_type: 'local' }) | ||
assert_failure response | ||
assert_equal 'Parameters hash or merchant_payment_code not informed', response.message | ||
end | ||
|
@@ -193,7 +194,7 @@ def test_partial_refund | |
end | ||
|
||
def test_failed_refund | ||
response = @gateway.refund(@amount, '') | ||
response = @gateway.refund(@amount, '', { processing_type: 'local' }) | ||
assert_failure response | ||
assert_equal 'Parameters hash or merchant_payment_code not informed', response.message | ||
assert_equal 'BP-REF-1', response.error_code | ||
|
@@ -203,13 +204,13 @@ def test_successful_void | |
auth = @gateway.authorize(@amount, @credit_card, @options) | ||
assert_success auth | ||
|
||
assert void = @gateway.void(auth.authorization) | ||
assert void = @gateway.void(auth.authorization, { processing_type: 'local' }) | ||
assert_success void | ||
assert_equal 'Accepted', void.message | ||
end | ||
|
||
def test_failed_void | ||
response = @gateway.void('') | ||
response = @gateway.void('', { processing_type: 'local' }) | ||
assert_failure response | ||
assert_equal 'Parameters hash or merchant_payment_code not informed', response.message | ||
end | ||
|
@@ -321,7 +322,7 @@ def test_successful_inquire | |
purchase = @gateway.purchase(@amount, @credit_card, @options) | ||
assert_success purchase | ||
|
||
inquire = @gateway.inquire(purchase.authorization) | ||
inquire = @gateway.inquire(purchase.authorization, { processing_type: 'local' }) | ||
assert_success inquire | ||
|
||
assert_equal 'Accepted', purchase.message | ||
|