Sha256: 7105192aebf9e98a8a34c02d1d755349b61b61a54ef3cf430c298b2061871bf6

Contents?: true

Size: 486 Bytes

Versions: 2

Compression:

Stored size: 486 Bytes

Contents

module Workarea
  decorate Storefront::PlaceOrderIntegrationTest, with: :stripe do
    def test_payment_error_handling
      patch storefront.checkout_place_order_path,
        params: {
          payment: 'new_card',
          credit_card: {
            number: '2',
            month:  1,
            year:   2020,
            cvv:    '999',
            stripe_token: '2'
          }
        }
      assert(response.ok?)
      assert_match('Payment', response.body)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
workarea-stripe-1.1.0 test/integration/workarea/storefront/place_order_integration_test.decorator
workarea-stripe-1.0.0 test/integration/workarea/storefront/place_order_integration_test.decorator