From 0385d5e9c4efe19d37d9b9a363b302086c6db8eb Mon Sep 17 00:00:00 2001 From: Tuan Nguyen Date: Mon, 18 Nov 2024 17:25:00 -0500 Subject: [PATCH] fixed typo --- test/controllers/ypb_postback_controller_test.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/controllers/ypb_postback_controller_test.rb b/test/controllers/ypb_postback_controller_test.rb index 12eede1..29dcae8 100644 --- a/test/controllers/ypb_postback_controller_test.rb +++ b/test/controllers/ypb_postback_controller_test.rb @@ -9,7 +9,7 @@ class YpbPostbackControllerTest < ActionDispatch::IntegrationTest @params = { tokenid: @transaction.uid, orderid: @transaction.order_id, - yporderid: @transaction.order_id, + ypborderid: @transaction.order_id, status: PaymentTransaction::STATUS_APPROVED, message: "Some message", cardtype: "V", @@ -29,7 +29,7 @@ class YpbPostbackControllerTest < ActionDispatch::IntegrationTest @transaction.reload assert_not_nil @transaction.ypb_transaction_approved_at - assert_equal @params[:yporderid], @transaction.yporderid + assert_equal @params[:ypborderid], @transaction.yporderid assert_equal @params[:status], @transaction.status assert_equal @params[:message], @transaction.message assert_equal @params[:cardtype], @transaction.cardtype @@ -50,7 +50,7 @@ class YpbPostbackControllerTest < ActionDispatch::IntegrationTest @transaction.reload assert_not_nil @transaction.ypb_transaction_declined_at - assert_equal @params[:yporderid], @transaction.yporderid + assert_equal @params[:ypborderid], @transaction.yporderid assert_equal @params[:status], @transaction.status assert_equal @params[:message], @transaction.message assert_equal @params[:cardtype], @transaction.cardtype