Capybara::Session#save_and_open_page takes a file name argument, but Capybara::Node::Email#save_and_open is passing it the body instead. This results in directories and files being created with the content of the email, like so:
$> ls -l tmp/capybara/
drwxr-xr-x 3 thunt staff 102 Dec 31 14:17 <!DOCTYPE html>??<html>?? <head>?? <meta content="text
The resulting file is empty.
@tylerhunt what version of Capybara are you using?
actually this looks like a Capybara 2.0 issue. Confirmed, I should have a fix in about 30 minute or so. Sorry it took a few days to get to
Stole for Capybara. Should resolve #15
@tylerhunt try out master branch and let me know.
Capybara itself doesn't have any tests for this so I wasn't sure myself how best to test it.
Works great. Thanks!