test/razorpay/test_order.rb in razorpay-3.0.1 vs test/razorpay/test_order.rb in razorpay-3.1.0

- old
+ new

@@ -58,10 +58,10 @@ assert_instance_of Razorpay::Order, order, 'order not an instance of Razorpay::Order class' assert_equal @order_id, order.id, 'order IDs do not match' end def test_fetch_order_transfers - stub_get("#{BASE_URI}orders/#{@order_id}/?expand[]=transfers&status", 'fake_order_transfers') + stub_get("#{BASE_URI}/v1/orders/#{@order_id}/?expand[]=transfers&status", 'fake_order_transfers') order = Razorpay::Order.fetch_transfer_order(@order_id) assert_instance_of Razorpay::Order, order, 'order not an instance of Razorpay::Order class' assert_equal @order_id, order.id, 'order IDs do not match' refute_empty order.transfers["items"] assert_equal @transfer_id, order.transfers["items"][0]["id"]