Merge pull request #12830 from filipefurtad0/remove_pdf_file_test_from_reports

Removes test on PDF file on sales tax report
This commit is contained in:
David Cook
2024-09-02 11:15:13 +10:00
committed by GitHub

View File

@@ -457,7 +457,6 @@ RSpec.describe "Sales Tax Totals By order" do
it_behaves_like "reports generated as", "CSV", "csv", false
it_behaves_like "reports generated as", "Spreadsheet", "xlsx", true
it_behaves_like "reports generated as", "PDF", "pdf", true
end
end
@@ -482,10 +481,6 @@ RSpec.describe "Sales Tax Totals By order" do
when "xlsx"
xlsx = Roo::Excelx.new(downloaded_filename)
xlsx.map(&:to_a).join(" ")
when "pdf"
# Load PDF pages and contents join into one big string
pdf = PDF::Reader.new(downloaded_filename)
pdf.pages.map(&:text).join(" ")
end
end
end