Sha256: 03f110c4544ed30b148e42035e648d2f0f61eede4e46fd2a835f89cd6a89fca7
Contents?: true
Size: 1 KB
Versions: 2
Compression:
Stored size: 1 KB
Contents
require 'test_helper' module Workarea module Storefront module GlobalEAPi class ReceivePaymentIntegrationTest < Workarea::IntegrationTest include GlobalESupport def test_successful_post order = create_global_e_completed_checkout post storefront.globale_receive_payment_path, headers: { 'CONTENT_TYPE' => 'application/json' }, params: global_e_peform_order_payment_body(order: order) assert response.ok? order.reload assert order.placed? fulfillment = Fulfillment.find order.id assert_equal( "https%3a%2f%2fqa.bglobale.com%2fOrder%2fTrack%2fmZ7c%3fOrderId%3dGE2130509US%26ShippingEmail%3dalextest%40test.com", fulfillment.global_e_tracking_url ) api_events = GlobalE::OrderApiEvents.find(order.id) assert api_events.receive_payment.present? assert api_events.receive_payment_response.present? end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems