Skip to content

Commit

Permalink
Mundipagg: Fix unit test
Browse files Browse the repository at this point in the history
Closes #4263

Fixed unit test case for gateway id that was sending remote call to
gateway in mundipagg implementation.

CE-2206

Unit:
5022 tests, 74850 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
100% passed

Rubocop:
725 files inspected, no offenses detected

Remote:
41 tests, 101 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
100% passed
  • Loading branch information
ajawadmirza authored and jessiagee committed Jan 10, 2022
1 parent 0e885fb commit 0652f18
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/unit/gateways/mundipagg_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -371,16 +371,16 @@ def test_failed_store_with_gateway_response_errors
end

def test_gateway_id_fallback
gateway = MundipaggGateway.new(api_key: 'my_api_key', gateway_id: 'abc123')
@gateway = MundipaggGateway.new(api_key: 'my_api_key', gateway_id: 'abcd123')
options = {
order_id: '1',
billing_address: address,
description: 'Store Purchase'
}
stub_comms do
gateway.purchase(@amount, @credit_card, options)
@gateway.purchase(@amount, @credit_card, options)
end.check_request do |_endpoint, data, _headers|
assert_match(/"gateway_affiliation_id":"abc123"/, data)
assert_match(/"gateway_affiliation_id":"abcd123"/, data)
end.respond_with(successful_purchase_response)
end

Expand Down

0 comments on commit 0652f18

Please sign in to comment.