I am using cucumber to test my application(which is in Rails). Now, I am having problem to test downloading file. I am using backbone so I am putting @javascript tag at every feature. I have gone through the solutions which is given in stackoverflow like : cucumber test file download but they are in rack-test. I want to know that how to click on file download box when we have @javascript in cucumber? I was trying to verify the response headers like : page.response_headers['Content-Type'].should == "text/csv"
but it shows that its not supported in capybara.
Any suggestion would be appreciated.