Recently, my sections of capybara that attached files, failed to operate.
attach_file('file_upload', 'testfiles/test.doc')
Previously, my file paths were not absolute, and that was fine. Then I started receiving a rejection;
unknown error: path is not absolute: testfiles/test.doc
If I made my path absolute;
attach_file('file_upload', '/tmp/test.doc')
It would not complain, but fail to attach the file as well.
Has anyone had this issue? Any ideas on how to fix it?