Skip to content

Commit

Permalink
linter
Browse files Browse the repository at this point in the history
  • Loading branch information
starswan committed Nov 25, 2024
1 parent 3a41bd5 commit 91074e6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -39,7 +39,7 @@ def download_pdf
filename: "job_application_#{job_application.id}.pdf",
type: "application/pdf",
disposition: "inline",
)
)
end
end

Expand Down
4 changes: 2 additions & 2 deletions spec/requests/publishers/vacancies/job_applications_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
Expand Down

0 comments on commit 91074e6

Please sign in to comment.