-
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.
Multiple Gateways: Resolve
when/case
bug
CE-2541 There is a bug in the `case` statements where we are attempting to resolve it conditionally with an `||`, but `case` takes a single value or list of values Unit: BluePay: 30 tests, 142 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications 100% passed Paysafe: 16 tests, 77 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications 100% passed 40 tests, 236 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications 100% passed Remote: CheckoutV2: 43 tests, 110 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications 100% passed BluePay: 19 tests, 90 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications 100% passed Paysafe: 31 tests, 94 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications 100% passed
- Loading branch information
Showing
9 changed files
with
12 additions
and
11 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
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
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 |
---|---|---|
|
@@ -37,7 +37,7 @@ def test_successful_purchase_with_check | |
assert response = @gateway.purchase(@amount, check, @options.merge(email: '[email protected]')) | ||
assert_success response | ||
assert response.test? | ||
assert_equal 'App ACH Sale', response.message | ||
assert_equal 'ACH Accepted', response.message | ||
assert response.authorization | ||
end | ||
|
||
|
@@ -184,18 +184,18 @@ def test_successful_refund_with_check | |
assert response = @gateway.purchase(@amount, check, @options.merge(email: '[email protected]')) | ||
assert_success response | ||
assert response.test? | ||
assert_equal 'App ACH Sale', response.message | ||
assert_equal 'ACH Accepted', response.message | ||
assert response.authorization | ||
|
||
assert refund = @gateway.refund(@amount, response.authorization, @options.merge(doc_type: 'PPD')) | ||
assert_success refund | ||
assert_equal 'App ACH Void', refund.message | ||
assert_equal 'ACH VOIDED', refund.message | ||
end | ||
|
||
def test_successful_credit_with_check | ||
assert credit = @gateway.credit(@amount, check, @options.merge(doc_type: 'PPD')) | ||
assert_success credit | ||
assert_equal 'App ACH Credit', credit.message | ||
assert_equal 'ACH Accepted', credit.message | ||
end | ||
|
||
def test_transcript_scrubbing | ||
|
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
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