Hello Guys,
I've got the following cucumber step (which uses capybara and capybara-webkit under the hood) that sometimes works and sometimes not:
Then /^I can download a file$/ do
page.response_headers['Content-Disposition'].should include('attachement') unless @selenium
end
It seems as if page.response_headers is sometimes present and sometimes not. If not I get the following error:
undefined method `include?' for nil:NilClass (NoMethodError
Does anybody know how to fix this?
Cheers,
Govinda