Closed JunichiIto closed 9 years ago
In chapter 10, you wrote attach_file 'Avatar', File.new(...) but that did not work for me. I used string file path instead of File object, like this:
attach_file 'Avatar', File.new(...)
https://github.com/JunichiIto/instance-variable-sandbox/blob/master/spec/features/csv_uploads_spec.rb#L18
Could you check it please?
You're right. I think FactoryGirl expects a File object, but Capybara wants a string. I've updated this in the book for the next release.
In chapter 10, you wrote
attach_file 'Avatar', File.new(...)
but that did not work for me. I used string file path instead of File object, like this:https://github.com/JunichiIto/instance-variable-sandbox/blob/master/spec/features/csv_uploads_spec.rb#L18
Could you check it please?