Sha256: b49c102fdc49825cff393bd5ebc63478b2c060606c57bbded1a65d6c2bfb940e

Contents?: true

Size: 609 Bytes

Versions: 4

Compression:

Stored size: 609 Bytes

Contents

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

    def test_save_persists_the_token
      # braintree doesn't issue the same token for the same card
    end

    def test_perform_sets_the_token_on_the_credit_card
      VCR.use_cassette 'braintree/store_credit_card-sets_token_on_the_card' do
        super
      end
    end

    private

    def credit_card
      @credit_card ||= VCR.use_cassette 'braintree/store_without_token' do
          create_saved_credit_card(number: '4111111111111111')
        end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

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