Skip to content

Instantly share code, notes, and snippets.

@jongilbraith
Created July 2, 2011 15:37
Show Gist options
  • Save jongilbraith/1060815 to your computer and use it in GitHub Desktop.
Save jongilbraith/1060815 to your computer and use it in GitHub Desktop.
Cucumber step to test downloading of files
Then /^I should get a download with the filename "([^\"]*)"$/ do |filename|
page.response_headers['Content-Disposition'].should include("filename=\"#{filename}\"")
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment