Sha256: 6802b70c946bde1618fdb1cbf9f217cc94585cd27c903a56a3da474a46549155

Contents?: true

Size: 589 Bytes

Versions: 4

Compression:

Stored size: 589 Bytes

Contents

module Workarea
  decorate Payment::Refund::CreditCardTest, with: :braintree do
    decorated { include BraintreeGatewayVCRConfig }

    def test_complete_sets_the_response_on_the_transaction
      VCR.use_cassette 'braintree/refund_success' do
        super
      end
    end

    private

      def reference
        @reference ||= Payment::Transaction.new(
          amount: 5.to_m,
          response: ActiveMerchant::Billing::Response.new(
            true,
            'Message',
            {},
            { authorization: authorization }
          )
        )
      end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
workarea-braintree-1.1.2 test/models/workarea/payment/refund/credit_card_test.decorator
workarea-braintree-1.1.1 test/models/workarea/payment/refund/credit_card_test.decorator
workarea-braintree-1.1.0 test/models/workarea/payment/refund/credit_card_test.decorator
workarea-braintree-1.0.3 test/models/workarea/payment/refund/credit_card_test.decorator