Sha256: f372e3bcfaf61b94f42eb9e6880404cfc873cc18fdcaeef7c70e00ad6f734174
Contents?: true
Size: 628 Bytes
Versions: 7
Compression:
Stored size: 628 Bytes
Contents
require 'test_helper' module Workarea class Payment class Capture class PaypalTest < Workarea::TestCase def payment @payment ||= create_payment( paypal: { paypal_id: '123', approved: true } ) end def test_complete! transaction = payment.paypal.build_transaction(action: 'capture') Paypal.new(payment.paypal, transaction).complete! refute(transaction.success?) assert_includes( transaction.message, I18n.t('workarea.payment.paypal_capture') ) end end end end end
Version data entries
7 entries across 7 versions & 1 rubygems