From 1a48660887bb6c05892570b40074a6b5281cb6f9 Mon Sep 17 00:00:00 2001 From: Oleg Hasjanov Date: Tue, 26 Sep 2023 10:04:11 +0300 Subject: [PATCH] mock request to billing in tests --- test/integration/admin/paid_deposits/deposit_statuses_test.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/integration/admin/paid_deposits/deposit_statuses_test.rb b/test/integration/admin/paid_deposits/deposit_statuses_test.rb index 2ad41ac95..676debf4b 100644 --- a/test/integration/admin/paid_deposits/deposit_statuses_test.rb +++ b/test/integration/admin/paid_deposits/deposit_statuses_test.rb @@ -8,6 +8,10 @@ class DepositStatusesTest < ActionDispatch::IntegrationTest @user = users(:participant) @admin = users(:administrator) + message = {"message": "Status updated"} + stub_request(:post, "http://eis_billing_system:3000/api/v1/invoice_generator/deposit_status") + .to_return(status: 200, body: message.to_json, headers: {}) + sign_in @admin end