From f0cf47cd66b845e67a3e03be27fc8c334b55151b Mon Sep 17 00:00:00 2001 From: olegphenomenon Date: Fri, 2 Sep 2022 13:49:51 +0300 Subject: [PATCH] fixed test --- test/jobs/send_monthly_invoices_job_test.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/jobs/send_monthly_invoices_job_test.rb b/test/jobs/send_monthly_invoices_job_test.rb index 9417278d7..51c2cb250 100644 --- a/test/jobs/send_monthly_invoices_job_test.rb +++ b/test/jobs/send_monthly_invoices_job_test.rb @@ -10,6 +10,10 @@ class SendMonthlyInvoicesJobTest < ActiveSupport::TestCase ActionMailer::Base.deliveries.clear EInvoice.provider = EInvoice::Providers::TestProvider.new EInvoice::Providers::TestProvider.deliveries.clear + + response = { message: 'sucess' } + stub_request(:post, "https://eis_billing_system:3000/api/v1/e_invoice/e_invoice") + .to_return(status: 200, body: response.to_json, headers: {}) end def teardown