diff --git a/app/controllers/publishers/vacancies/job_applications_controller.rb b/app/controllers/publishers/vacancies/job_applications_controller.rb index 3e31cae89c..9924ea0fb4 100644 --- a/app/controllers/publishers/vacancies/job_applications_controller.rb +++ b/app/controllers/publishers/vacancies/job_applications_controller.rb @@ -29,7 +29,7 @@ def download_pdf filename: "job_application_#{job_application.id}.pdf", type: "application/pdf", disposition: "inline", - ) + ) else pdf = JobApplicationPdfGenerator.new(job_application, vacancy).generate pdf_data = pdf.render @@ -39,7 +39,7 @@ def download_pdf filename: "job_application_#{job_application.id}.pdf", type: "application/pdf", disposition: "inline", - ) + ) end end diff --git a/spec/requests/publishers/vacancies/job_applications_spec.rb b/spec/requests/publishers/vacancies/job_applications_spec.rb index fbdc62dd77..04eac0d157 100644 --- a/spec/requests/publishers/vacancies/job_applications_spec.rb +++ b/spec/requests/publishers/vacancies/job_applications_spec.rb @@ -111,7 +111,7 @@ context "without cache" do it "allows the PDF to be downloaded" do get(organisation_job_job_application_download_pdf_path(vacancy.id, job_application.id)) - expect(response.body).to satisfy { |body| body.size > 128000 } + expect(response.body).to(satisfy { |body| body.size > 128_000 }) end end @@ -122,7 +122,7 @@ it "allows the PDF to be downloaded" do get(organisation_job_job_application_download_pdf_path(vacancy.id, job_application.id)) - expect(response.body).to satisfy { |body| body.size > 128000 } + expect(response.body).to(satisfy { |body| body.size > 128_000 }) end end end