From 19f732ab49fc47bbdfdd56c4930b9260feb64eea Mon Sep 17 00:00:00 2001 From: Dave Sick Date: Sat, 11 Apr 2020 11:09:30 -0700 Subject: [PATCH] fixed send invoice test invoice by updating invoice assignment variable --- spec/features/market_manager/financials/send_invoices_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/features/market_manager/financials/send_invoices_spec.rb b/spec/features/market_manager/financials/send_invoices_spec.rb index 03d1a8f2f3..8452e18cb2 100644 --- a/spec/features/market_manager/financials/send_invoices_spec.rb +++ b/spec/features/market_manager/financials/send_invoices_spec.rb @@ -123,8 +123,8 @@ # See that we've been redirected to the PDF uri for a BatchInvoice... batch_invoice = nil patiently do - uid = current_path[1..-1] - batch_invoice = BatchInvoice.find_by(pdf_uid: uid) + pdfid = current_path[-1] + batch_invoice = BatchInvoice.find(pdfid) expect(batch_invoice).to be expect(batch_invoice.pdf).to be expect(batch_invoice.pdf.file).to be