Downloading file to specific folder using Capybara and Poltergeist driver

I am writing my acceptance tests using Capybara and Poltergeist driver.I need to validate the content of the CSV file downloaded. I tried various ways of rendering the content on the page itself i...