Created
July 2, 2011 15:37
-
-
Save jongilbraith/1060815 to your computer and use it in GitHub Desktop.
Cucumber step to test downloading of files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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