Sha256: f20483cc370e9aaea111c966417ac70cb3af3954828254d584f8063df6b55941

Contents?: true

Size: 771 Bytes

Versions: 4

Compression:

Stored size: 771 Bytes

Contents

if Workarea::VERSION::MAJOR >= 3 && Workarea::VERSION::MINOR >= 3
  module Workarea
    decorate Payment::CreditCardIntegrationTest, with: :stripe do
       def payment
          @payment ||=
            begin
              profile = create_payment_profile
              order = create_order
              create_payment(
                id: order.id,
                profile_id: profile.id,
                address: {
                  first_name: 'Ben',
                  last_name: 'Crouse',
                  street: '22 s. 3rd st.',
                  city: 'Philadelphia',
                  region: 'PA',
                  postal_code: '19106',
                  country: Country['US']
                }
              )
            end
        end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
workarea-stripe-1.1.2 test/models/workarea/payment/credit_card_integration_test.decorator
workarea-stripe-1.1.1 test/models/workarea/payment/credit_card_integration_test.decorator
workarea-stripe-1.1.0 test/models/workarea/payment/credit_card_integration_test.decorator
workarea-stripe-1.0.0 test/models/workarea/payment/credit_card_integration_test.decorator