Sha256: 20583d540705b6fb145b575bcec3095399ac164adae1ea3d9fa45229c16ee2fa

Contents?: true

Size: 970 Bytes

Versions: 1

Compression:

Stored size: 970 Bytes

Contents

module Workarea
  decorate Payment::Purchase::CreditCardTest, with: :checkoutdotcom do
    def test_complete_does_nothing_if_gateway_storage_fails
      skip "Storage happens post transaction"
    end

    def payment
      @payment ||= create_payment(profile: create_payment_profile)
    end

    def tender
      @tender ||=
        begin
          payment.set_address(first_name: 'Ben', last_name: 'Crouse')
          create_order(id: payment.id, email: 'bclams@workarea.com')

          payment.set_address(
            first_name: 'Ben',
            last_name: 'Crouse',
            street: '22 s 3rd st',
            city: 'Philadelphia',
            region: 'PA',
            country: Country['US'],
            postal_code: '19106'
          )

          payment.build_credit_card(
            number: 1,
            month: 1,
            year: Time.current.year + 1,
            cvv: 999
          )

          payment.credit_card
        end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
workarea-checkoutdotcom-1.2.0 test/models/workarea/payment/purchase/credit_card_test.decorator