Skip to content

Instantly share code, notes, and snippets.

@bbozo
bbozo / example_test.rb
Last active January 18, 2020 15:24
API calls mocking & validation
api_exchange << {
request_validator: method(:request_validator).curry[an_option_for_request_validator: true],
response: response_for_valid
}
rv = initiate_authorization
assert_trx_result rv, three_ds_1: TestCaseFaker.test_case
# .....
def request_validator options, request